LonelyRoad Posted July 10, 2010 Posted July 10, 2010 Hey guys, I understand some MTA Lua now so I can make it for myself normally, but this one has me stumped, basically what I want to do is check onPlayerConnect if the player has a space in their name, and if they do I'd like to replace it with an '_' Hope you can help! Regards.
Callum Posted July 10, 2010 Posted July 10, 2010 string.gsub should work for you. string.gsub(string,"original text", "new text") EDIT: You can find the string.gsub tutorial on this page.
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