fix: wrong index in data.jobs client
This commit is contained in:
1 parent
85e784b3f6
commit
ff57646be2
1 file changed
+1
-1
@@ -8,7 +8,7 @@ Dispatch = Dispatch or {}
|
|||||||
Dispatch.SendAlert = function(data)
|
Dispatch.SendAlert = function(data)
|
||||||
local ped = PlayerPedId()
|
local ped = PlayerPedId()
|
||||||
|
|
||||||
local job = data.job or data.jobs[0] or 'police'
|
local job = data.job or data.jobs[1] or 'police'
|
||||||
local message = data.message or "An Alert Has Been Made"
|
local message = data.message or "An Alert Has Been Made"
|
||||||
local coords = data.coords or GetEntityCoords(ped)
|
local coords = data.coords or GetEntityCoords(ped)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user