diff --git a/client/main.lua b/client/main.lua index 4cbfe4de..33099a2a 100644 --- a/client/main.lua +++ b/client/main.lua @@ -679,6 +679,7 @@ function OpenPoliceActionsMenu() {label = _U('domobile'), value = 'mobile'}, {label = _U('aacoffe'), value = 'coffe'}, {label = _U('push_ups'), value = 'pushups'}, + {label = _U('cancel_emote'), value = 'emotecancel'}, }, }, function(data2, menu2) @@ -878,6 +879,16 @@ function OpenPoliceActionsMenu() end) end + + if data2.current.value == 'emotecancel' then + + Citizen.CreateThread(function() + ClearPedTasksImmediately(GetPlayerPed(-1)) + TriggerEvent('esx:showNotification', _U('emotecanceled')) + + end) + + end end, function(data2, menu2)