Boxtrot Posted December 27, 2015 Share Posted December 27, 2015 Welp, im working on my server and the migration from doing web stuff to LUA stuff is going pretty damn good... actually it's working like air, does nothing. I tried for many hours to get a Resource for giving myself a custom private skin on command. I researched over here and found some code but couldn't get it to do what i needed (Wich i know it's pretty easy but im so dumb that im unable to achieve it). What i basicly found was code from https://forum.multitheftauto.com/viewtopic.php?f=91&t=52293 and got it working but im stuck on how to get it to actually work when my name is XXXX and i use a specific command. Help is really appreciated for this fellow new coder migrating to LUA u_u Link to comment
luskanek Posted December 28, 2015 Share Posted December 28, 2015 addCommandHandler("mycmd", function() if getPlayerName(getLocalPlayer()) == "myname" then -- do stuff end end ) 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