Gallagher Posted June 10, 2014 Share Posted June 10, 2014 HEllo! when I start the resource ped does not do the animation function makePed ( ) ped1o = createPed ( 73,20.038000106812,-327.09165039063,3.0661196708679 ) setPedRotation ( ped1o, -90 ) setPedAnimation ( ped1o, "CRACK" , "crckidle1" ) end addEventHandler ( "onResourceStart", getRootElement(), makePed ) Link to comment
Karuzo Posted June 10, 2014 Share Posted June 10, 2014 Are you sure that your file is called scrip.lua? Link to comment
Gallagher Posted June 10, 2014 Author Share Posted June 10, 2014 Are you sure that your file is called scrip.lua? yes, the ped is created, but it does not make the animation Link to comment
Gallagher Posted June 10, 2014 Author Share Posted June 10, 2014 this works, the ped is created and makes the animation function makePed ( ) ped1o = createPed ( 73,20.038000106812,-327.09165039063,3.0661196708679 ) setPedRotation ( ped1o, -90 ) setPedAnimation ( ped1o, "CRACK" , "crckidle1" ) end addCommandHandler("ped",makePed ) but if I relog and it is up to the ped this stopped Link to comment
#DRAGON!FIRE Posted June 10, 2014 Share Posted June 10, 2014 try this addEventHandler ( "onResourceStart", root, function ( ) ped1o = createPed ( 73,20.038000106812,-327.09165039063,3.0661196708679 ) setPedRotation ( ped1o, -90 ) setTimer( setPedAnimation, 100, 1, ped1o, "CRACK", "crckidle1" ) end ) Link to comment
Gallagher Posted June 10, 2014 Author Share Posted June 10, 2014 try this addEventHandler ( "onResourceStart", root, function ( ) ped1o = createPed ( 73,20.038000106812,-327.09165039063,3.0661196708679 ) setPedRotation ( ped1o, -90 ) setTimer( setPedAnimation, 100, 1, ped1o, "CRACK", "crckidle1" ) end ) thanks brow Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now