CARS (IPL Section)

CARS is a section in the item placement file introduced in San Andreas. This section is a simplified method to create parked cars. Usually parked cars are created by the scripts, but just as unique stunt jumps they can be written inside plain text or binary IPLs. Since parked car generators are related to savegames a new game must be started before they are applied to the game. It is possible to create parked car generators without starting a new game using CLEO.

Format
CARS or parked car generators are used to place permanently, randomly or limited cars which are placed (parked) around the world. For this they need a position, a rotation, information about which car should be placed, the car's colors and some additional information.

San Andreas
PosX, PosY, PosZ, Angle, CarID, PrimCol, SecCol, ForceSpawn, Alarm, DoorLock, Unknown1, Unknown2

Binary format
CARS is one of the known sections which can be used in binary format inside streaming IPLs. For detailed information about the format see the format specification in the supposed article.

Opcodes

 * 014B – Creates a parked car generator in SCM
 * 014C – Sets the flags for the parked car generator.
 * 09E2 – Creates a parked car generator where the car has a special numplate text.
 * 0A17 – Sets a parked car generator as owned by the player

Native functions

 * CREATE_CAR_GENERATOR
 * CREATE_CAR_GENERATOR_WITH_PLATE
 * CREATE_CARS_ON_GENERATORS_IN_AREA
 * DELETE_CAR_GENERATOR
 * DISABLE_CAR_GENERATORS
 * DISABLE_CAR_GENERATORS_WITH_HELI
 * FORCE_GENERATE_PARKED_CARS_TOO_CLOSE_TO_OTHERS
 * IS_OUR_PLAYER_HIGHER_PRIORITY_FOR_CAR_GENERATION
 * REMOVE_CARS_FROM_GENERATORS_IN_AREA
 * SET_ALL_CAR_GENERATORS_BACK_TO_ACTIVE
 * SET_CAR_GENERATORS_ACTIVE_IN_AREA
 * SET_HAS_BEEN_OWNED_FOR_CAR_GENERATOR
 * SWITCH_CAR_GENERATOR