mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Fixed issue with blips noted in #125
This commit is contained in:
+5
-3
@@ -147,6 +147,8 @@ function OpenCloakroomMenu()
|
||||
ESX.TriggerServerCallback('esx_service:isInService', function(isInService)
|
||||
if isInService then
|
||||
|
||||
playerInService = false
|
||||
|
||||
local notification = {
|
||||
title = _U('service_anonunce'),
|
||||
subject = '',
|
||||
@@ -159,7 +161,6 @@ function OpenCloakroomMenu()
|
||||
TriggerServerEvent('esx_service:disableService', 'police')
|
||||
TriggerEvent('esx_policejob:updateBlip')
|
||||
ESX.ShowNotification(_U('service_out'))
|
||||
playerInService = false
|
||||
end
|
||||
end, 'police')
|
||||
end
|
||||
@@ -178,6 +179,9 @@ function OpenCloakroomMenu()
|
||||
ESX.ShowNotification(_U('service_max', inServiceCount, maxInService))
|
||||
else
|
||||
|
||||
serviceOk = true
|
||||
playerInService = true
|
||||
|
||||
local notification = {
|
||||
title = _U('service_anonunce'),
|
||||
subject = '',
|
||||
@@ -188,8 +192,6 @@ function OpenCloakroomMenu()
|
||||
TriggerServerEvent('esx_service:notifyAllInService', notification, 'police')
|
||||
TriggerEvent('esx_policejob:updateBlip')
|
||||
ESX.ShowNotification(_U('service_in'))
|
||||
serviceOk = true
|
||||
playerInService = true
|
||||
end
|
||||
end, 'police')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user