Vehicles in GTA 2 Mission Scripts

Cars are very easy to create and I’m sure you’ll have alot of them in your maps! Below is how you can place a parked car in your map. If you leave out the Z coordinate, the car is placed on the highest solid surface.

PARKED_CAR_DATA name = (X,Y,Z) remap rotation MODEL

or:

PARKED_CAR_DATA name = (X,Y,Z) remap rotation MODEL TRAILERMODEL

The second is only for use with trucks and trailers (since when did you see a Z-Type driving around with a tanker?).

So, you could have one similar to the one below.

PARKED_CAR_DATA fastcar (34.5,45.5,2.0) 28 0 STRATOS

or:

PARKED_CAR_DATA truck (35.5,47.5,2.0) 19 270 TRUKCAB2 TANKER

The second declares that when the game loads, the trailer is automatically attached.

Toy Cars

To create a half-size car, set the TRAILERMODEL to be MINI_CAR. Best used for remote control missions!

PARKED_CAR_DATA fastcar (34.5,45.5,2.0) 28 0 STRATOS MINI_CAR

Vehicle Remap Colours

Taken straight from the official documentation. Default colour is usually a medium brown.

-1Default Setting
0Brown
1Black
2Black 3
3Blue
4Blue-Grey
5Bright Green
6Bright Red
7Brown
8Browner
9Bright Silver
10Bright Yellow
11Cream
12Cyan
13Dark Beige
14Dark Blue
15Blue
16Dark Green
17Dark Red
18Dark Rust
19Gold
20Green
21Grey
22Light Brown
23Olive
24Orange
25Pale Blue
26Pink Red
27Purple
28Red
29Rust
30Silver
31Skyblue
32Turquoise
33Pale Silver
34Whiter
35Yellow
36zzgbank

Car List

Below is a table detailing every car in GTA 2 with their script name as well as their in-game name.

Vehicles by In-Game Name
CarScript Code
A-TypeRTYPE
Aniston BD4AMDB4
ArachnidSPIDER
Armed Land Roamer 6GUNJEEP
B-TypeSTYPE
BeamerBMW
BensonMERC
Box TruckBOXTRUCK
BugBUG
Bulwark 4BUICK
Bus 7BUS
Cop Car 6COPCAR
Dementia 4ISETTA
Dementia LimousineISETLIMO
EddyEDSEL
Firetruck 6FIRETRUK
Furore GTZCX5
G4 Bank VanBANKVAN
Garbage TruckGTRUCK
GT-A1 5GT24640
HachuraSTRIPETB
Hot Dog VanHOTDOG
Hot Dog Van Dummy 1 3HOTDOG_D1
HOTDOG_D2
HOTDOG_D3
HOTDOG_D4
Ice-Cream VanICECREAM
JeffersonJEFFREY
Jugular XKXK120
Karma Bus 4KRSNABUS
Land Roamer 6JEEP
MauriceMORRIS
Miara 4MIURA
Michelli RoadsterT2000GT
Medicar 6MEDICAR
MeteorSTRATOS
Meteor Turbo 4STRATOSB
MinxDART
Monster BugMONSTER
MortonMORGAN
SharkGRAHAM
Stretch LimousineLIMO
Sports LimousineLIMO2
Pacifier 6APC
Pickup 4PICKUP
PantoFIAT
RomeroALFA
RumblerWBTWIN
SchmidtMESSER
Special Agent Car 6EDSELFBI
SpritzerSPRITE
StingerSTINGRAY
SWAT Van 6SWATVAN
Tank 6TANK
T-RexTBIRD
Taxi 7TAXI
Taxi Xpress 7STYPECAB
Tow TruckTOWTRUCK
Train 1BOXCAR
TRAIN
TRAINCAB
TRAINFB
Trance-AMTRANCEAM
Truck CabTRUKCAB1
Truck Cab SXTRUKCAB2
Truck Trailer, Container 2TRUKCONT
Truck Trailer, Flatbed 2TRUKTRNS
Truck Trailer, Tanker 2TANKER
TV VanTVVAN
U-Jerk TruckVESPA
VanVAN
WellardALLARD
Wreckage 3WRECK0
WRECK1
WRECK2
WRECK3
WRECK4
WRECK5
WRECK6
WRECK7
WRECK8
WRECK9
Z-Type 4VTYPE

Goes on a bit doesn’t it? If you are wondering what the numbers are for, here they are:

  1. Game Crashes.
  2. Guess what, you can’t enter a Truck Cab Container!
  3. Useless, don’t even bother putting them in unless it is for a special mission.
  4. Default gang car.
  5. Primarily used for the Wang Car bonuses.
  6. Emergency vehicles.
  7. Public transport.

If you try to use the WRECK vehicles and actually destroy them via weapons, the game will crash. In this way, you should make them all weapon proof (machine gun, rocket launcher and flame-thrower) for added security. Unfortunately, it is still affected by the Electro Gun. Furthermore, they cannot be driven by the player or the AI so you cannot spawn characters inside them. You have been warned!

Preventing A Model Type From Spawning

If you don’t want a certain vehicle to drive around on the map, use the code below:

SUPPRESS_THIS_CAR_MODEL (MODELNAME)

Only one car can ever be suppressed, and if you try another, it will update with the new one. If you want to stop this later on, such as after a mission, set the modelname to NONE.

SUPPRESS_THIS_CAR_MODEL (NONE)

Vehicle Door Locks

To make your game cars locked, you need to add the following commands:

CHANGE_CAR_LOCK (name, LOCK_TYPE)

Change name to any previously created car, and the LOCK_TYPE to one of the following:

Values for LOCK_TYPE
NO_LOCKCar has no lock whatsoever.
LOCKEDLocks out everyone, including players.
UNLOCKEDCar is unlocked.
LOCKED_PERMANENTLYCar is always locked for everyone.
LOCKOUT_THIEF_ONLYOnly locks out car thieves, this is the default for created cars.
LOCKOUT_PLAYEROnly locks out players.

Vehicle Alarms

If you want to give a car an alarm, just add the following code:

GIVE_CAR_ALARM (name)

Set the name to a previously made car. The alarm will go off if you steal the car or shoot it.

(Originally written by Chris “Pyro” Hockley and formatted by Ben “Cerbera” Millard with full permission.)