local key = 186
local freeze = true
function main()
while not isSampAvailable() do wait(0) end
if not hasAnimationLoaded("ON_LOOKERS") then
requestAnimation("ON_LOOKERS")
while not hasAnimationLoaded("ON_LOOKERS") do wait(0) end
end
while true do
wait(0)
if isKeyDown(key) and isCharOnFoot(PLAYER_PED) and not sampIsCursorActive() then
if isCharPlayingAnim(PLAYER_PED, "POINTUP_IN") then
clearCharTasksImmediately(PLAYER_PED)
else
taskPlayAnimNonInterruptable(PLAYER_PED, "POINTUP_IN", "ON_LOOKERS", 4.0, false, false, false, freeze, -1)
end
while isKeyDown(key) do wait(0) end
end
end
end