-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathclient.lua
45 lines (40 loc) · 1.3 KB
/
client.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
QBCore = exports['qb-core']:GetCoreObject()
local wait = 60000*15
Citizen.CreateThread(function()
LifeInvader = AddBlipForCoord(-1082.91, -247.99, 37.76)
SetBlipSprite (LifeInvader, 605)
SetBlipDisplay(LifeInvader, 4)
SetBlipScale (LifeInvader, 0.8)
SetBlipAsShortRange(LifeInvader, true)
-- SetBlipColour(LifeInvader, 50)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("Life Invader")
EndTextCommandSetBlipName(LifeInvader)
end)
Citizen.CreateThread(function()
while true do
Wait(wait)
TriggerServerEvent('mrp-paychecks:Register')
end
end)
RegisterNetEvent('mrp-paychecks:targetcollect')
AddEventHandler('mrp-paychecks:targetcollect', function()
TriggerServerEvent('mrp-paychecks:Collect')
end)
CreateThread(function()
exports['qb-target']:AddBoxZone('paychecks', vector3(-1083.21, -246.95, 37.52), 1.5, 1.6, {
name = 'paychecks',
heading = 240,
debugPoly = false,
}, {
options = {
{
type = "client",
event = "mrp-paychecks:targetcollect",
icon = "fas fa-money-check-alt",
label = "Collect Paycheck",
},
},
distance = 2.0
})
end)