// Spawn Vanilla Vehicle
Vector3 spawnPosition = PP.Position + new Vector3(0, 4, 0);
World.CreateVehicle("ADDER", spawnPosition);
// or use line below
World.CreateVehicle(VehicleHash.Adder, spawnPosition);
// Spawn addon Vehicles
private void V2020CLA45s(object sender, EventArgs e)
{ Vehicle vehicle1 = World.CreateVehicle("2020CLA45s", PP.Position + PP.ForwardVector * 3.0f, PP.Heading + 90); }
private void Vamg(object sender, EventArgs e)
{ Vehicle vehicle1 = World.CreateVehicle("amg", PP.Position + PP.ForwardVector * 3.0f, PP.Heading + 90); }
private void Vamggtr(object sender, EventArgs e)
{ Vehicle vehicle1 = World.CreateVehicle("amggtr", PP.Position + PP.ForwardVector * 3.0f, PP.Heading + 90); }
private void V160s2020(object sender, EventArgs e) //Honda Titan
{
Vehicle vehicle15 = World.CreateVehicle("160s2020", PP.GetOffsetPosition(new Vector3(2, 0, 0)), PP.Heading + 90);
Function.Call(Hash.SET_VEHICLE_COLOURS, vehicle15, 89, 74);
vehicle15.Mods.InstallModKit(); //goes first
Function.Call(Hash.SET_VEHICLE_MOD, vehicle15, 0, 0, false); //first zero is for spoilers
Function.Call(Hash.SET_VEHICLE_MOD, vehicle15, 1, 0, false); //1 is for frontbumper
}
private void VHDIron883(object sender, EventArgs e)
{
Vehicle vehicle15 = World.CreateVehicle("HDIron883", PP.GetOffsetPosition(new Vector3(2, 0, 0)), PP.Heading + 90);
Function.Call(Hash.SET_VEHICLE_COLOURS, vehicle15, 39, 39);
Function.Call(Hash.SET_VEHICLE_EXTRA, vehicle15, 1, 1); //remove all extras, boolean is to DISABLE, so should be set to true
Function.Call(Hash.SET_VEHICLE_EXTRA, vehicle15, 2, 1);
Function.Call(Hash.SET_VEHICLE_EXTRA, vehicle15, 3, 1);
Function.Call(Hash.SET_VEHICLE_EXTRA, vehicle15, 4, 1);
Function.Call(Hash.SET_VEHICLE_EXTRA, vehicle15, 5, 1);
Function.Call(Hash.SET_VEHICLE_EXTRA, vehicle15, 6, 1);
}
Content for Script 4 goes here.
Content for Script 5 goes here.
Content for Script 6 goes here.
Content for Script 7 goes here.
Content for Script 8 goes here.
Content for Script 9 goes here.
Content for Script 10 goes here.
Content for Script 11 goes here.
Content for Script 12 goes here.