Greatly improved esx_service (see desc), closes #138

Not being in service means that you can no longer open the F6 menu, or open the armory. You will no longer be able to take out vehicles or receive dispatch calls.

Greatly improved support for esx_service and esx_phone when restarting the scripts mentioned above mid-game.

All ranks now have proper clothing in,  but will still need a redo at some point. Many ranks simply doesn't match USA standard (that's what we'll aim at)

Don't forget to update esx_service and esx_phone to support the new things!
This commit is contained in:
ElPumpo
2018-07-22 14:45:11 +02:00
parent 56ab5958af
commit d8100fe0d0
4 changed files with 360 additions and 261 deletions
+6
View File
@@ -521,6 +521,12 @@ AddEventHandler('onResourceStart', function(resource)
end
end)
AddEventHandler('onResourceStop', function(resource)
if resource == GetCurrentResourceName() then
TriggerEvent('esx_phone:removeNumber', 'police')
end
end)
RegisterServerEvent('esx_policejob:message')
AddEventHandler('esx_policejob:message', function(target, msg)
TriggerClientEvent('esx:showNotification', target, msg)