Updated native name

This commit is contained in:
ElPumpo
2019-05-31 12:37:48 +02:00
parent ef8fba47f6
commit 06839cb101
+2 -2
View File
@@ -269,7 +269,7 @@ Citizen.CreateThread(function()
else
-- open phone
-- todo: is player busy (handcuffed, etc)
if IsControlJustReleased(0, Keys['F1']) and GetLastInputMethod(2) then
if IsControlJustReleased(0, Keys['F1']) and IsInputDisabled(0) then
if not ESX.UI.Menu.IsOpen('phone', GetCurrentResourceName(), 'main') then
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open('phone', GetCurrentResourceName(), 'main')
@@ -295,7 +295,7 @@ Citizen.CreateThread(function()
if CurrentAction ~= nil then
ESX.ShowHelpNotification(CurrentActionMsg)
if IsControlJustReleased(0, Keys['E']) and GetLastInputMethod(2) then
if IsControlJustReleased(0, Keys['E']) and IsInputDisabled(0) then
if CurrentAction == 'dispatch' then
TriggerServerEvent('esx_phone:stopDispatch', CurrentDispatchRequestId)
SetNewWaypoint(CurrentActionData.position.x, CurrentActionData.position.y)