MAB Posted June 11, 2015 Share Posted June 11, 2015 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 ) Link to comment
Dealman Posted June 11, 2015 Share Posted June 11, 2015 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) 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