local key = 90
local loop = true
function main()
while not isSampAvailable() do wait(0) end
if not hasAnimationLoaded("GHANDS") then
requestAnimation("GHANDS")
while not hasAnimationLoaded("GHANDS") 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, "gsign1") then
clearCharTasksImmediately(PLAYER_PED)
else
taskPlayAnimNonInterruptable(PLAYER_PED, "gsign1", "GHANDS", 4.0, loop, false, false, false, -1)
end
while isKeyDown(key) do wait(0) end
end
end
end