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