LiOneLMeSsIShoT Posted August 13, 2013 Share Posted August 13, 2013 I made this script to set the player walking style 132 in the player login...but i want to set like..if the skin Girl.then set Walk style 128..and if the skin man .then set walk style 132 ...i think i have to make a table like local men = { skin = 280 etc... } local girls = ( skin = 263 etc... } Help please addEventHandler ( "onPlayerLogin", root, function ( ) setPedWalkingStyle ( source, 132 ) end ) Link to comment
Castillo Posted August 13, 2013 Share Posted August 13, 2013 You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns. Link to comment
LiOneLMeSsIShoT Posted August 13, 2013 Author Share Posted August 13, 2013 You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns. Yeah...but this table work? with skin = 280 for example? or i do setElementModel? !! Link to comment
LiOneLMeSsIShoT Posted August 13, 2013 Author Share Posted August 13, 2013 You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns. Yeah...but this table work? with skin = 280 for example? or i do setElementModel? !! local men = { skin = 280 } so???? Link to comment
LiOneLMeSsIShoT Posted August 13, 2013 Author Share Posted August 13, 2013 You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns. Yeah...but this table work? with skin = 280 for example? or i do setElementModel? !! Okay okay..fixed. .thanks Link to comment
Castillo Posted August 13, 2013 Share Posted August 13, 2013 No, do it this way: local men = { [ 280 ] = true, } Link to comment
LiOneLMeSsIShoT Posted August 13, 2013 Author Share Posted August 13, 2013 No, do it this way: local men = { [ 280 ] = true, } Okay Link to comment
LiOneLMeSsIShoT Posted August 13, 2013 Author Share Posted August 13, 2013 No, do it this way: local men = { [ 280 ] = true, } Okay But i want something like Update the script...because when someone buy a new skin...or select a skin after he login in skin selector...he MUST reconnect to get the walk style on..so there's way to make it auto work everytime? like script check players skins ...not only onPlayerLogin 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