roaddog Posted January 1, 2015 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.
MTA Team botder Posted January 1, 2015 MTA Team Posted January 1, 2015 local number = ("Vehicle (ID: 100)"):match("%d+") -- = "100"[string]
roaddog Posted January 1, 2015 Author Posted January 1, 2015 Oh thank you for your fast reply, I'm so grateful.
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