Vehicles in GTA 2 Coding

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:

PARKED_CAR_DATA uniquename = ( X , Y , Z ) remap rotation model

or:

PARKED_CAR_DATA uniquename = ( 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. To create a mini style car, set the trailer model to be MINI_CAR which is best used for remote control missions!

Car Remaps

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

  1. Default Setting
  2. AlpBlue
  3. Black
  4. Black3
  5. Blue
  6. BlueGrey
  7. BrGreen
  8. BriteRed
  9. Brown
  10. Browner
  11. BSilver
  12. BYellow
  13. Cream
  14. Cyan
  15. DBeige
  16. DBlue
  17. DeepBlue
  18. DGreen
  19. DRed
  20. DRust
  21. Gold
  22. Green
  23. Grey
  24. LBrown
  25. Olive
  26. Orange
  27. PaleBlue
  28. PinkRed
  29. Purple
  30. Red
  31. Rust
  32. Silver
  33. Skyblue
  34. Turquoiz
  35. White
  36. Whiter
  37. Yellow
  38. zzgbank

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
Hot Dog Van Dummy 2 3HOTDOG_D2
Hot Dog Van Dummy 3 3HOTDOG_D3
Hot Dog Van Dummy 4 3HOTDOG_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 ( model-name )

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 model-name to NONE.

Vehicle Door Locks

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

CHANGE_CAR_LOCK ( car-name , lock-type )

Change car-name to any previously created car, and the 'lock-type' to one of the following:

Description
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 ( car-name )

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

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