fix wrong index in data.jobs
This commit is contained in:
1 parent
c6759228a3
commit
85e784b3f6
1 file changed
+1
-1
@@ -2,7 +2,7 @@ if GetResourceState('emergencydispatch') == 'missing' then return end
|
|||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
||||||
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 vector3(0, 0, 0)
|
local coords = data.coords or vector3(0, 0, 0)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user