Jump to content

[HELP]setPedAnimation


Padul

Recommended Posts

Hi,

i start to learn how to script in lua, i start with something easy like creating peds, making them doing animations. I get stuck on start. Ok, so i tried to make ped and make them moving, but, script create peds, make him rotate but, it doesn't make anything, can somebody help mi with this?

function makePed() 
   ped1 = createPed(139, 2039.0611572266, 1543.8338623047, 10.671875) 
   setPedAnimation(ped1,"CRACK","crckidle2") 
end 
addEventHandler( "onResourceStart", getResourceRootElement(),makePed) 

Sorry, for my bad english ;d

Link to comment

i dont know what i fcked up now but peds are multiplying

  
function makePed() 
    ped1 = createPed(139, 2039.0611572266, 1543.8338623047, 10.671875) 
    setPedAnimation(ped1,"CRACK","crckidle2") 
    setTimer ( makePed, 200, 1)  
end 
addEventHandler( "onResourceStart", getResourceRootElement(),makePed) 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...