mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 02:38:53 +00:00
Updated native name
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user