Mefisto_PL Posted November 2, 2012 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
Renkon Posted November 2, 2012 Posted November 2, 2012 Guy should be the ped, PedSkin should be the model. You should write setElementModel(PedSkin, number)
Castillo Posted November 2, 2012 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.
Mefisto_PL Posted November 2, 2012 Author 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..
Castillo Posted November 2, 2012 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 )
Mefisto_PL Posted November 2, 2012 Author Posted November 2, 2012 Oh ! Thank you ! That's working ! ;D
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