Razor70538 Posted March 18, 2019 Posted March 18, 2019 Hello, I have a doubt! Supose that exist a team named "The Intocables", so I want create a marker with the color of this team, but when I put the command "createwarp The Intocables" I have a problem with the parameters, because in the command it takes "The" and "Intocables" as two different parameters, so I can't take the team from name correctly. So my question is: Wich is the character of the space for commands? Can I do something like this? : createwarp The%Intocables or: createwarp The_Intocables. Help
holuzs Posted March 18, 2019 Posted March 18, 2019 (edited) local clanName = table.concat({clanName}, " ") or clanName:gsub("_", " ") This replace underline with space. Edited March 18, 2019 by holuzs 1
Moderators IIYAMA Posted March 18, 2019 Moderators Posted March 18, 2019 (edited) function functionName (player, cmd, ...) local name = table.concat({...}, " ") end @Razor70538 Edited March 18, 2019 by IIYAMA 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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