mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fixed esx_policejob/issues/144
This commit is contained in:
+1
-2
@@ -150,8 +150,7 @@ end)
|
|||||||
|
|
||||||
RegisterNetEvent('esx_phone:onMessage')
|
RegisterNetEvent('esx_phone:onMessage')
|
||||||
AddEventHandler('esx_phone:onMessage', function(phoneNumber, message, position, anon, job, dispatchRequestId, dispatchNumber)
|
AddEventHandler('esx_phone:onMessage', function(phoneNumber, message, position, anon, job, dispatchRequestId, dispatchNumber)
|
||||||
|
if dispatchNumber and phoneNumber == PhoneData.phoneNumber then
|
||||||
if dispatchNumber then
|
|
||||||
TriggerEvent('esx_phone:cancelMessage', dispatchNumber)
|
TriggerEvent('esx_phone:cancelMessage', dispatchNumber)
|
||||||
|
|
||||||
if WasEventCanceled() then
|
if WasEventCanceled() then
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ function GenerateUniquePhoneNumber()
|
|||||||
|
|
||||||
-- if the result is empty, aka the phone number is available
|
-- if the result is empty, aka the phone number is available
|
||||||
if count == 0 then
|
if count == 0 then
|
||||||
foundNumber = true
|
foundNumber = true
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user