mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Fixed restarting resource without esx_service enabled
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user