Jump to content

Random Number


Deddalt

Recommended Posts

I recently started learning LUA after becoming proficient in C++ with SA-MP. If anyone knows how to script in C++, you know that:

new random = random(number)(number)(number);

will select one of the random numbers and assign the variable to that value. I want to know how to do this with LUA so that I can have a random vehicle model spawn when the server starts.

Thanks for the help.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...