MAB Posted June 11, 2015 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 ) You can find me here.
Dealman Posted June 11, 2015 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) If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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