Merge pull request #13 from TheMrDeivid/patch-3

Added a cancel animation option
This commit is contained in:
AdrineX
2017-09-10 21:29:11 +03:00
committed by GitHub
+11
View File
@@ -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)