ZeyadGTX Posted June 12, 2014 Posted June 12, 2014 I have This Client Side script which allow me to change walking style but not working on Skin 10 , i tried skin 0 , 132 , 10 all of them not working why ? addEventHandler ( "onElementModelChange", root, function ( _, newModel ) if ( newModel == 132 ) then setPedWalkingStyle ( source, 10 ) else setPedWalkingStyle ( source, 0 ) end end ) My nick in MTA is Spider
MIKI785 Posted June 12, 2014 Posted June 12, 2014 I don't quite understand, but what you are doing there is that if the skin is 132 you change the walking style to 10 which does not exist according to wiki (setPedWalkingStyle). You set it to default one for all other skins. Lua Scripter Owner of mshost.cz MTA portal.
-.Paradox.- Posted June 12, 2014 Posted June 12, 2014 Stop stealing codes from my topics which you don't even know how to use. If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
Moderators IIYAMA Posted June 13, 2014 Moderators Posted June 13, 2014 Are you color blind? Because wiki says the color is orange. While you turned in to red. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Max+ Posted June 13, 2014 Posted June 13, 2014 Well , You Cant check the player skin , if it's .. ( id ) then setPedWalkingStyle , , - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
-.Paradox.- Posted June 13, 2014 Posted June 13, 2014 setPedWalkingStyle will return false anyways. If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
ZeyadGTX Posted June 13, 2014 Author Posted June 13, 2014 Ok it works now ty My nick in MTA is Spider
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