Don't let the dead open F6 menu

This commit is contained in:
ElPumpo
2018-04-15 23:15:23 +02:00
parent 7ce6e9fea5
commit 3428aea1b7
2 changed files with 39 additions and 45 deletions
-6
View File
@@ -491,12 +491,6 @@ AddEventHandler('esx_policejob:forceBlip', function()
TriggerClientEvent('esx_policejob:updateBlip', -1)
end)
ESX.RegisterServerCallback('esx_policejob:isCop', function(source, cb)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
cb(xPlayer ~= nil and xPlayer.job ~= nil and xPlayer.job.name == 'police')
end)
AddEventHandler('onResourceStart', function(resource)
if resource == GetCurrentResourceName() then
Citizen.Wait(5000)