Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 014B

Opcode Database

014B

DescriptionInitializes a parked car generator, meaning that a vehicle with the specified parameters will spawn xx number of times.

Use 014C to change the amount of times the vehicle will spawn.

force_spawn
0 - sometimes spawns, sometimes doesn't
1 - always spawns (even when player is looking)

alarm
The chance of the cars alarm going off.

door_lock
The chance of the car door being locked.


The colour value for this opcode uses a carcol.dat ID. You can get a list of them by following the links below.
San Andreas Car Colours
Vice City and GTA III Car Colours
Parameters (v2)1) X Coord (Float) (FLOAT)
2) Y Coord (Float) (FLOAT)
3) Z Coord (Float) (FLOAT)
4) Angle (Float) (FLOAT)
5) Model (Integer) (MODEL)
6) Car colour ID (Integer) (INT)
7) Car colour ID (Integer) (INT)
8) Boolean (1 or 0) (INT)
9) Integer (INT)
10) Integer (INT)
11) Time in ms (Integer) (INT)
12) Time in ms (Integer) (INT)
13) (Returned) Car generator handle (Integer) (INT)
Gamessa vc iii
CategoryCar Generator, Common, Creation
Command Name (IV)CREATE_CAR_GENERATOR
San Andreas
sascm.ini014B=13,create_car_generator %1d% %2d% %3d% angle %4d% model %5o% color %6d% %7d% force_spawn %8d% alarm %9d% doorlock %10d% delay %11d% %12d% store_to %13d%
Example014B: create_car_generator 2435.302 -1671.848 12.8007 angle 90.0 model #RHINO color -1 -1 force_spawn 1 alarm 0 doorlock 0 delay 0 10000 store_to $PARKED_RHINO
Command NameCREATE_CAR_GENERATOR
Vice City
sascm.ini014B=13,%13d% = init_car_generator %5t% %6d% %7d% force_spawn %8d% alarm %9d% door_lock %10d% min_delay %11d% max_delay %12d% at %1d% %2d% %3d% angle %4d%
Example014B: $87 = init_car_generator #DELUXO color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -1022.6 -868.6 12.2 angle 175.0
Command NameCREATE_CAR_GENERATOR
GTA III
gtascm.ini014B=13,%13d% = init_car_generator %5o% %6d% %7d% force_spawn %8d% alarm %9d% door_lock %10d% min_delay %11d% max_delay %12d% at %1d% %2d% %3d% angle %4d%
Example014B: $JOEY_BFINJECTION = init_car_generator #BFINJECT color -1 -1 force_spawn 0 alarm 100 door_lock 0 min_delay 0 max_delay 10000 at 930.875 -267.6249 -99.9999 angle 340.0
Command NameCREATE_CAR_GENERATOR

<< 0149

014C >>