Vehicle placement (GTA2)

Main Page > GTA2 > Modding Tutorial > Creating vehicles


GTA2 will automatically create driving vehicles on the roads. Only parked cars and mission based cars have to be scripted. To simply create a vehicle, you use this command:


CAR_DATA name = ( X.x , Y.y , Z.z ) color rotation vehicle
name Unique name of the car
( X.x , Y.y , Z.z ) The coordinates
color The color you want the car to have. Each color has it's own number, see the list below.
rotation The direction the car should face
vehicle The code of the car type. See the list below.

This command goes before LEVELSTART.

Example

If you want to create a red Stinger at the coordinates 146.5 , 158.5 , 2.0, facing North, the command will look like this:

CAR_DATA stingeratparking = ( 146.5 , 158.5 , 2.0 ) 35 180 STINGRAY

Vehicle codes

Voertuig Code
Aniston BD4 AMDB4
Arachnid SPIDER
Armed Land Roamer GUNJEEP
A-Type RTYPE
Beamer BMW
Benson MERC
Box Truck BOXTRUCK
Big Bug MONSTER
B-Type STYPE
Bug BUG
Bus BUS
Bulwark BUICK
Container TRUKCONT
Cop Car COPCAR
Dementia ISETTA
Dementia Limousine ISETLIMO
Eddy EDSEL
Fire Truck FIRETRUK
Furore GT ZCX5
G4 Bank Van BANKVAN
Garbage Truck GTRUCK
GT-A1 GT24640
Hachura STRIPETB
Hot Dog Van HOTDOG
Ice Cream Van ICECREAM
Jagular XK XK120
Jefferson JEFFREY
Karma Bus KRSNABUS
Land Roamer JEEP
Maurice MORRIS
Medicar MEDICAR
Meteor STRATOS
Meteor STRATOSB
Miara MIURA
Michelli Roadster T2000GT
Minx DART
Morton MORGAN
Pacifier APC
Panto FIAT
Pickup PICKUP
Romero ALFA
Rumbler WBTWIN
Schmidt MESSER
Shark GRAHAM
Special Agent Car EDSELFBI
Sports Limousine LIMO2
Spritzer SPRITE
Stinger STINGRAY
Stretch Limousine LIMO
SWAT Van SWATVAN
Tank TANK
Tanker TANKER
Taxi TAXI
Taxi Xpress STYPECAB
Tow Truck TOWTRUCK
Trance Am TRANCEAM
Transporter TRUKTRNS
T-Rex TBIRD
Truck Cab TRUKCAB1
Truck Cab SX TRUKCAB2
TV Van TVVAN
U-Jerk Truck VESPA
Van VAN
Wellard ALLARD
Z-Type VTYPE

Vehicle colors

Kleur Code
14Brown 0 (Default color, may be different when used with certain cars)
61Purple 1
71Black 2
591Blue 3
57Blue gray 4
41Bright green 5
22Bright red 6
17Brown 7
18Brown 8
56Silver blue 9
31Yellow 10
12Cream 11
52Cyan 12
44Dark beige 13
59Dark blue 14
58Deep blue 15
43Dark green 16
21Dark red 17
16Dark rust 18
13Gold 19
42Green 20
72Gray 21
32Yellow green 22
45Olive 23
24Orange 24
54Pale blue 25
23Pink red 26
62Purple 27
23Red 28
15Rust 29
73Silver 30
53Sky blue 31
51Turquoiz 32
74White gray 33
75White 34
11Yellow 35
55Lichtblauw 36 (Only usable with the G4 Bank Van)
Modding tutorials of Grand Theft Auto 2
Mapping Map Editor · Buildings · Roads · Water & animations · Slopes · Flat tiles · Collision info · Level edge · Zones · Putting a level ingame
Scripting Declarering: Main script · Script Compiler · Code lists · Commands · Vehicles · Objects · Sounds · Characters
Programming: IF · WHILE · COUNTERs · Subroutines · THREAD TRIGGERs · Kill Frenzies
Both Manual · Lighting · Car shops · Cranes & crushers · Gangs · Subway · Multiplayer levels
File types .gci · .gmp · .gxt · .mis · .mmp · .scr · .seq · .tmp · .sty
Other Texting · Physics · Creating vehicles · Terminology · Installing levels