Adde Posted March 26, 2013 Posted March 26, 2013 Hello, why is setElementModel a bad argument here? function skin () setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin )
golanu21 Posted March 26, 2013 Posted March 26, 2013 Hello, why is setElementModel a bad argument here? function skin () setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) you need to definte the "player" or you can put setElementModel (source, 286)
iPrestege Posted March 26, 2013 Posted March 26, 2013 function skin (player) setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin )
golanu21 Posted March 26, 2013 Posted March 26, 2013 function skin () local player = getLocalPlayer() setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin )
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 (edited) still bad argument function skin(player) setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Edited March 26, 2013 by Guest
Adde Posted March 26, 2013 Author Posted March 26, 2013 function skin () local player = getLocalPlayer() setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Yes that worked, thx! I only tested with source..
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 function skin () local player = getLocalPlayer() setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Yes that worked, thx! I only tested with source.. serverside function skin(player) setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin )
iPrestege Posted March 26, 2013 Posted March 26, 2013 My code was should work in the client or server side ._. i think that you don't test it.
golanu21 Posted March 26, 2013 Posted March 26, 2013 function skin () local player = getLocalPlayer() setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Yes that worked, thx! I only tested with source.. You're are welcome
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 My code was should work in the client or server side ._. i think that you don't test it. to use client side needs to use getLocalPlayer ()
iPrestege Posted March 26, 2013 Posted March 26, 2013 Yes,I know that but he didn't say it's client side .,.
Smart. Posted March 26, 2013 Posted March 26, 2013 player = getLocalPlayer() is a waste, you could just do setElementModel(localPlayer, 286)
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