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 ) My ingame nickname is: Mr.Snus
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) [Dev]BloWnRPG - We BloW the World [1%]
Adde Posted March 26, 2013 Author Posted March 26, 2013 still bad argument My ingame nickname is: Mr.Snus
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 ) [Dev]BloWnRPG - We BloW the World [1%]
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 MTA Scripters. ♥♥♥Beijinhos♥♥♥
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.. My ingame nickname is: Mr.Snus
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 ) MTA Scripters. ♥♥♥Beijinhos♥♥♥
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 [Dev]BloWnRPG - We BloW the World [1%]
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 () MTA Scripters. ♥♥♥Beijinhos♥♥♥
iPrestege Posted March 26, 2013 Posted March 26, 2013 Yes,I know that but he didn't say it's client side .,.
Adde Posted March 26, 2013 Author Posted March 26, 2013 Ah okay I forgot to say that My ingame nickname is: Mr.Snus
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 Ah okay I forgot to say that ok MTA Scripters. ♥♥♥Beijinhos♥♥♥
Smart. Posted March 26, 2013 Posted March 26, 2013 player = getLocalPlayer() is a waste, you could just do setElementModel(localPlayer, 286) lol
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