roaddog Posted January 1, 2015 Share Posted January 1, 2015 Well hello guys. so I have got a question for you, This seems easy for me but, yet i haven't figured it out. So the question is how can I find number in a string for example "Vehicle (ID: 100)" or "Some string 10 lines" and I need just the number from that string, how to get the numbers that's it. Thanks. Link to comment
MTA Team botder Posted January 1, 2015 MTA Team Share Posted January 1, 2015 local number = ("Vehicle (ID: 100)"):match("%d+") -- = "100"[string] Link to comment
roaddog Posted January 1, 2015 Author Share Posted January 1, 2015 Oh thank you for your fast reply, I'm so grateful. 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