Fixed restarting resource without esx_service enabled

This commit is contained in:
ElPumpo
2018-07-23 20:31:39 +02:00
parent 9dde2092b4
commit b3a8b6ddb5
+4 -1
View File
@@ -1992,7 +1992,10 @@ AddEventHandler('onResourceStop', function(resource)
if resource == GetCurrentResourceName() then
TriggerEvent('esx_policejob:unrestrain')
TriggerEvent('esx_phone:removeSpecialContact', 'police')
TriggerServerEvent('esx_service:disableService', 'police')
if Config.MaxInService ~= -1 then
TriggerServerEvent('esx_service:disableService', 'police')
end
if Config.EnableHandcuffTimer and HandcuffTimer.Active then
ESX.ClearTimeout(HandcuffTimer.Task)