Jump to content

Help!


MAB

Recommended Posts

Posted

Hello i need your help....

i want the game to choose a random model from these three models : 515 , 403 and 514 so what should i type in the model argument?

createVehicle ( , x, y, z )

Posted
local randomModels = { 
[1] = 403, 
[2] = 514, 
[3] = 515 
} 
  
local randInt = math.random(1, 3) -- Generate a random integer between 1 and 3 
createVehicle(randomModels[randInt], x, y, z) 

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...