I want to spawn a vehicle, how can I?
for ex
else if ( cmd == "cbike" )
{
CreateVehicle( 6401, player.World, player.Pos, 0, 12, 13 )
}
Now tell me how can I spawn the vehicle, the code given there isn't working, I have tried with default vehicles too, nothing works
Can anyone tell me how to spawn a vehicle
http://forum.vc-mp.org/?topic=1122.new#new
The vehicle IDs Start from 130 to 236, So I suppose its not working due to an invalid ID.
Quote from: Doom_Killer on Jul 25, 2015, 11:07 AMThe vehicle IDs Start from 130 to 236, So I suppose its not working due to an invalid ID.
Thats the custom vehice
@KAKAN try
else if ( cmd == "cbike" )
{
CreateVehicle( 6401, player.World, Vector(player.Pos.x, player.Pos.y, player.Pos.z), 0, 12, 13 );
}
Oh my god thanks man, it worked!
I have spawnveh cmd, but it works only if I type the ID, anyways thanks again