mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
_source
Add _source line 495
This commit is contained in:
+3
-2
@@ -492,7 +492,8 @@ AddEventHandler('esx_policejob:forceBlip', function()
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_policejob:isCop', function(source, cb)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
cb(xPlayer ~= nil and xPlayer.job ~= nil and xPlayer.job.name == 'police')
|
||||
end)
|
||||
|
||||
@@ -501,4 +502,4 @@ AddEventHandler('onResourceStart', function(resource)
|
||||
Citizen.Wait(5000)
|
||||
TriggerClientEvent('esx_policejob:updateBlip', -1)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user