sacr1ficez Posted July 1, 2019 Posted July 1, 2019 (edited) Hey. Is there any way to get string with spaces from arguments in command? For example i want to get complete string when using command: /getstring String with spaces So it doesn't count as other arguments, and it should return one complete string. Edited July 1, 2019 by majqq Script security
Moderators IIYAMA Posted July 1, 2019 Moderators Posted July 1, 2019 (edited) function test (arg1, arg2, ...) local restOf = table.concat({...}, " ") end ... < dynamic arguments. function test2 (...) setElementPosition(...) end test2(element, 1220, 100, 100) Edited July 1, 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