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. You gone learn today. I work my ass off, but I still can't pay tho.
MTA Team botder Posted January 1, 2015 MTA Team Posted January 1, 2015 local number = ("Vehicle (ID: 100)"):match("%d+") -- = "100"[string] GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
roaddog Posted January 1, 2015 Author Posted January 1, 2015 Oh thank you for your fast reply, I'm so grateful. You gone learn today. I work my ass off, but I still can't pay tho.
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