Created
May 10, 2018 15:17
-
-
Save UmGeek/3b8f7efa36551425a02fa75c84a533e9 to your computer and use it in GitHub Desktop.
Script para moonloader, GTA San Andreas, play anim simples.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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