30.12.2013, 17:43
So Im new at this scripting thing, and was looking for a way to:
Spawn a car with a command. But the car must NOT be pre defined, ie, random.
Now my first idea was to simple create a command /spawncar and in it, put something like this:
(note: I DONT REMEMBER THE COMMANDS SO IM JUST GONNA PUT SOME RANDOM EASY ENG TEXT)
{
CreateVehicle('method to get random id',infront of player x,y,z );
}
But we dont just want a rendom ID, since there are a LOT of useless trailers and stairs and planes and helicopters and what not, here: https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
According to that, the vehicle IDs are between 400 and 611, which include a lot of useless junk, is there any way to like, exclude them from spawning?
here a scenario:
*Player goes to a random lot*
*Player types: "/spawncar"
*A Turismo spawns
*He types again
*a NRG spawns
Thats what I want. No Planes, boats, aircraft, or trailers and junk.
Thanks.
Spawn a car with a command. But the car must NOT be pre defined, ie, random.
Now my first idea was to simple create a command /spawncar and in it, put something like this:
(note: I DONT REMEMBER THE COMMANDS SO IM JUST GONNA PUT SOME RANDOM EASY ENG TEXT)
{
CreateVehicle('method to get random id',infront of player x,y,z );
}
But we dont just want a rendom ID, since there are a LOT of useless trailers and stairs and planes and helicopters and what not, here: https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
According to that, the vehicle IDs are between 400 and 611, which include a lot of useless junk, is there any way to like, exclude them from spawning?
here a scenario:
*Player goes to a random lot*
*Player types: "/spawncar"
*A Turismo spawns
*He types again
*a NRG spawns
Thats what I want. No Planes, boats, aircraft, or trailers and junk.
Thanks.