SpawnVehicle( <modelname>, <targetname>, <vehicletype>, <origin>, <angles> )


Module: Spawn
SP Only

Summary:

Spawns a new vehicle and returns a reference to it



Required Args:

  • 1 : <modelname> The name of the model to spawn (constant string)
  • 2 : <targetname> vehicle target name (constant string)
  • 3 : <vehicletype> vehicle type (constant string)
  • 4 : <origin> The position of the vehicle (vector)
  • 5 : <angles> The angle to spawn the vehicle at (vector)