Adde Posted March 26, 2013 Share Posted March 26, 2013 Hello, why is setElementModel a bad argument here? function skin () setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Link to comment
golanu21 Posted March 26, 2013 Share 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) Link to comment
iPrestege Posted March 26, 2013 Share Posted March 26, 2013 function skin (player) setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Link to comment
golanu21 Posted March 26, 2013 Share Posted March 26, 2013 function skin () local player = getLocalPlayer() setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 (edited) still bad argument function skin(player) setElementModel( player, 286 ) end addCommandHandler ( "girlskin", skin ) Edited March 26, 2013 by Guest Link to comment
Adde Posted March 26, 2013 Author Share 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.. Link to comment
ZL|LuCaS Posted March 26, 2013 Share 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 ) Link to comment
iPrestege Posted March 26, 2013 Share Posted March 26, 2013 My code was should work in the client or server side ._. i think that you don't test it. Link to comment
golanu21 Posted March 26, 2013 Share 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 Link to comment
ZL|LuCaS Posted March 26, 2013 Share 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 () Link to comment
iPrestege Posted March 26, 2013 Share Posted March 26, 2013 Yes,I know that but he didn't say it's client side .,. Link to comment
Adde Posted March 26, 2013 Author Share Posted March 26, 2013 Ah okay I forgot to say that Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 Ah okay I forgot to say that ok Link to comment
Smart. Posted March 26, 2013 Share Posted March 26, 2013 player = getLocalPlayer() is a waste, you could just do setElementModel(localPlayer, 286) 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