Difference between revisions of "0ADD"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{OpCode | games = {{Icon|SA}} | command = SPAWN_VEHICLE_BY_CHEATING | description = Creates a vehicle with a particular model in front the player. Load models and s...")
 
(include iii and vc)
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| games      = {{Icon|SA}}
+
| games      = {{Icon|t}} (with [[CLEO]])
| command    = SPAWN_VEHICLE_BY_CHEATING
+
| description = Spawns a vehicle of the specified model like a cheat
| description = Creates a vehicle with a particular model in front the player. Load models and so on. Colour is chosen at random. These opcodes do not get a wagon train. Vehicles are spawned in the same way they are when using spawning cheats.
+
| syntax1    = 0ADD: spawn_car_with_model [''int''] like_a_cheat
| syntax1    = 0ADD: spawn_vehicle_by_cheating #RHINO
+
| p1t        = [''int'']
| p1t        = ''model''
+
| p1d        = Valid model index as defined in the [[CARS (IDE Section)|CARS section]] of the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
| p1d        = Vehicle ID/model.
 
 
}}
 
}}
  
This opcode create a predefined vehicle model in front the player. Load models and so on. Colour is chosen at random. These opcode don't get a wagon train. Vehicles spawn in the same way they are when using cheats.
+
This [[CLEO]] opcode spawns a vehicle of the specified model like a cheat. In GTA III and Vice City, the vehicle spawns on the nearest [[PATH|car path]] node. In San Andreas, it spawns in front of the player. Also in San Andreas, vehicles of type train are disallowed from being spawned. [[carcols.dat|Car colors]] are randomized. For CLEO v2.0.0.5 and below for GTA III, this opcode only works with the Rhino model.
  
 
== Keywords ==
 
== Keywords ==
spawn, vehicle, spawn vechile, cheat spawn, vehicle cheat, cheat, vehicle spawn
+
spawn, car, vehicle, model, cheat, cheating
 +
 
 +
[[Category:CLEO Opcodes]]

Latest revision as of 05:57, 4 August 2017

GTA III Vice City San Andreas (with CLEO)


Description
Spawns a vehicle of the specified model like a cheat
Syntax
0ADD: spawn_car_with_model [int] like_a_cheat
Parameter
[int]
Valid model index as defined in the CARS section of the IDE file; also acceptable is model's DFF name with a hash character

This CLEO opcode spawns a vehicle of the specified model like a cheat. In GTA III and Vice City, the vehicle spawns on the nearest car path node. In San Andreas, it spawns in front of the player. Also in San Andreas, vehicles of type train are disallowed from being spawned. Car colors are randomized. For CLEO v2.0.0.5 and below for GTA III, this opcode only works with the Rhino model.

Keywords

spawn, car, vehicle, model, cheat, cheating