Furious^ONE! Posted August 6, 2014 Share Posted August 6, 2014 hi , When do I start the script puts her to me: [2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:3 Bad argument @ 'setPedRotation' [Expected element at argument 1, got boolean] [2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:4 Bad argument @ 'setPedAnimation' [Expected element at argument 1, got boolean] function pedLoad () APed = createPed ( 83, 2353, 2143, 11 ) setTimer(setPedRotation,5000,1,APed,270 ) setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) Link to comment
Snow-Man Posted August 6, 2014 Share Posted August 6, 2014 hi , When do I start the script puts her to me: [2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:3 Bad argument @ 'setPedRotation' [Expected element at argument 1, got boolean] [2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:4 Bad argument @ 'setPedAnimation' [Expected element at argument 1, got boolean] function pedLoad () APed = createPed ( 83, 2353, 2143, 11 ) setTimer(setPedRotation,5000,1,APed,270 ) setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) there's no problem with this script just put it in meta to server side Link to comment
Et-win Posted August 6, 2014 Share Posted August 6, 2014 there's no problem with this script just put it in meta to server side It started the function, so it's already server-side. Link to comment
Saml1er Posted August 6, 2014 Share Posted August 6, 2014 function pedLoad () APed = createPed ( 83, 2353, 2143, 11 ) if APed and isElement( APed ) then setTimer(setPedRotation,5000,1,APed,270 ) setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) else outputChatBox("ERROR: Could not create ped") end end addEventHandler ( "onResourceStart", resourceRoot, pedLoad ) 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