Mefisto_PL Posted November 2, 2012 Share Posted November 2, 2012 (edited) I would like to set ped skin when I press the button, everything is okey, but ped skin isn't changed.. In debugscript is "Bad Argument".. Nothing to see Edited November 2, 2012 by Guest Link to comment
Renkon Posted November 2, 2012 Share Posted November 2, 2012 Guy should be the ped, PedSkin should be the model. You should write setElementModel(PedSkin, number) Link to comment
Castillo Posted November 2, 2012 Share Posted November 2, 2012 'source' of onClientGUIClick is the button clicked. Where is 'Guy' defined? Also, if you change the skin client side, only you will see it changed. Link to comment
Mefisto_PL Posted November 2, 2012 Author Share Posted November 2, 2012 Guy it's a ped, but I want to change default skin to MY skin. ///EDIT I know only I can see that, but now for tests I teleport to this interior. In normal i set camera.. Link to comment
Castillo Posted November 2, 2012 Share Posted November 2, 2012 You declared your 'Guy' variable local, which means it can only be accessed inside 'StripBitches' function. local Guy = createPed ( 0, 2230.2053, -1107.5839, 1050.8828, 180 ) Should be: Guy = createPed ( 0, 2230.2053, -1107.5839, 1050.8828, 180 ) Link to comment
Mefisto_PL Posted November 2, 2012 Author Share Posted November 2, 2012 Oh ! Thank you ! That's working ! ;D 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