RegisterKeyMapping("handsonhead", "Hands on head", "keyboard", "Z")
function handonhead()
while not HasAnimDictLoaded("random@arrests@busted") do
RequestAnimDict("random@arrests@busted")
Citizen.Wait(5)
end
if not handsonhead then
handsonhead = true
TaskPlayAnim(PlayerPedId(), "random@arrests@busted", "idle_c", 3.0, 1.0, -1, 50, 0, false, false, false)
else
handsonhead = false
ClearPedTasks(PlayerPedId())
end
end