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.
-1 | Default Setting |
---|---|
0 | Brown |
1 | Black |
2 | Black 3 |
3 | Blue |
4 | Blue-Grey |
5 | Bright Green |
6 | Bright Red |
7 | Brown |
8 | Browner |
9 | Bright Silver |
10 | Bright Yellow |
11 | Cream |
12 | Cyan |
13 | Dark Beige |
14 | Dark Blue |
15 | Blue |
16 | Dark Green |
17 | Dark Red |
18 | Dark Rust |
19 | Gold |
20 | Green |
21 | Grey |
22 | Light Brown |
23 | Olive |
24 | Orange |
25 | Pale Blue |
26 | Pink Red |
27 | Purple |
28 | Red |
29 | Rust |
30 | Silver |
31 | Skyblue |
32 | Turquoise |
33 | Pale Silver |
34 | Whiter |
35 | Yellow |
36 | zzgbank |
Car List
Below is a table detailing every car in GTA 2 with their script name as well as their in-game name.
Car | Script Code |
---|---|
A-Type | RTYPE
|
Aniston BD4 | AMDB4
|
Arachnid | SPIDER
|
Armed Land Roamer 6 | GUNJEEP
|
B-Type | STYPE
|
Beamer | BMW
|
Benson | MERC
|
Box Truck | BOXTRUCK
|
Bug | BUG
|
Bulwark 4 | BUICK
|
Bus 7 | BUS
|
Cop Car 6 | COPCAR
|
Dementia 4 | ISETTA
|
Dementia Limousine | ISETLIMO
|
Eddy | EDSEL
|
Firetruck 6 | FIRETRUK
|
Furore GT | ZCX5
|
G4 Bank Van | BANKVAN
|
Garbage Truck | GTRUCK
|
GT-A1 5 | GT24640
|
Hachura | STRIPETB
|
Hot Dog Van | HOTDOG
|
Hot Dog Van Dummy 1 3 | HOTDOG_D1
|
HOTDOG_D2
| |
HOTDOG_D3
| |
HOTDOG_D4
| |
Ice-Cream Van | ICECREAM
|
Jefferson | JEFFREY
|
Jugular XK | XK120
|
Karma Bus 4 | KRSNABUS
|
Land Roamer 6 | JEEP
|
Maurice | MORRIS
|
Miara 4 | MIURA
|
Michelli Roadster | T2000GT
|
Medicar 6 | MEDICAR
|
Meteor | STRATOS
|
Meteor Turbo 4 | STRATOSB
|
Minx | DART
|
Monster Bug | MONSTER
|
Morton | MORGAN
|
Shark | GRAHAM
|
Stretch Limousine | LIMO
|
Sports Limousine | LIMO2
|
Pacifier 6 | APC
|
Pickup 4 | PICKUP
|
Panto | FIAT
|
Romero | ALFA
|
Rumbler | WBTWIN
|
Schmidt | MESSER
|
Special Agent Car 6 | EDSELFBI
|
Spritzer | SPRITE
|
Stinger | STINGRAY
|
SWAT Van 6 | SWATVAN
|
Tank 6 | TANK
|
T-Rex | TBIRD
|
Taxi 7 | TAXI
|
Taxi Xpress 7 | STYPECAB
|
Tow Truck | TOWTRUCK
|
Train 1 | BOXCAR
|
TRAIN
| |
TRAINCAB
| |
TRAINFB
| |
Trance-AM | TRANCEAM
|
Truck Cab | TRUKCAB1
|
Truck Cab SX | TRUKCAB2
|
Truck Trailer, Container 2 | TRUKCONT
|
Truck Trailer, Flatbed 2 | TRUKTRNS
|
Truck Trailer, Tanker 2 | TANKER
|
TV Van | TVVAN
|
U-Jerk Truck | VESPA
|
Van | VAN
|
Wellard | ALLARD
|
Wreckage 3 | WRECK0
|
WRECK1
| |
WRECK2
| |
WRECK3
| |
WRECK4
| |
WRECK5
| |
WRECK6
| |
WRECK7
| |
WRECK8
| |
WRECK9
| |
Z-Type 4 | VTYPE
|
Goes on a bit doesn’t it? If you are wondering what the numbers are for, here they are:
- Game Crashes.
- Guess what, you can’t enter a Truck Cab Container!
- Useless, don’t even bother putting them in unless it is for a special mission.
- Default gang car.
- Primarily used for the Wang Car bonuses.
- Emergency vehicles.
- 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:
NO_LOCK | Car has no lock whatsoever. |
---|---|
LOCKED | Locks out everyone, including players. |
UNLOCKED | Car is unlocked. |
LOCKED_PERMANENTLY | Car is always locked for everyone. |
LOCKOUT_THIEF_ONLY | Only locks out car thieves, this is the default for created cars. |
LOCKOUT_PLAYER | Only 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.)