Skip to content

Instantly share code, notes, and snippets.

@UmGeek
Created May 10, 2018 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UmGeek/3b8f7efa36551425a02fa75c84a533e9 to your computer and use it in GitHub Desktop.
Save UmGeek/3b8f7efa36551425a02fa75c84a533e9 to your computer and use it in GitHub Desktop.
Script para moonloader, GTA San Andreas, play anim simples.
script_name("animspray")
local IFP = "spraycan"
local ANIMATION = "spraycan_full"
function main()
repeat
if wasKeyPressed(0x50) then -- tecla P
if not hasAnimationLoaded(IFP) then
requestAnimation(IFP)
loadAllModelsNow()
end
while not wasKeyReleased(0x50) do
taskPlayAnim(PLAYER_PED,ANIMATION,IFP,4.0,true,true,true,false,-1)
wait(4)
end
clearCharTasks(PLAYER_PED)
removeAnimation(IFP)
end
wait(40)
until false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment