mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Merge pull request #13 from TheMrDeivid/patch-3
Added a cancel animation option
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user