Improved randomness with generating phone number

This commit is contained in:
ElPumpo
2018-09-22 00:21:16 +02:00
parent 3a87aef280
commit 41403673e7
2 changed files with 17 additions and 37 deletions
+6 -8
View File
@@ -281,22 +281,20 @@ end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if CurrentAction ~= nil then
SetTextComponentFormat('STRING')
AddTextComponentString(CurrentActionMsg)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
if CurrentAction ~= nil then
ESX.ShowHelpNotification(CurrentActionMsg)
if IsControlJustReleased(0, Keys['E']) and GetLastInputMethod(2) then
if CurrentAction == 'dispatch' then
TriggerServerEvent('esx_phone:stopDispatch', CurrentDispatchRequestId)
SetNewWaypoint(CurrentActionData.position.x, CurrentActionData.position.y)
SetNewWaypoint(CurrentActionData.position.x, CurrentActionData.position.y)
end
CurrentAction = nil
end
else
Citizen.Wait(500)
end
end
end)