diff --git a/client/main.lua b/client/main.lua index a4cddb1..497e0d2 100644 --- a/client/main.lua +++ b/client/main.lua @@ -126,6 +126,7 @@ local playerLoaded, uiActive, inMenu = false, false, false atm = atm or false SetNuiFocus(state, state) inMenu = state + ClearPedTasks(PlayerPedId()) if not state then SendNUIMessage({ showMenu = false @@ -257,4 +258,4 @@ RegisterNUICallback('checkPincode', function(data, cb) ESX.ShowNotification(TranslateCap('pincode_not_found'), "error") end end, data) -end) \ No newline at end of file +end)