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[1] 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[2].
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.
The real world coordinates of the car as floating point values.
Angle
The angle of the car in radians (degrees/~57.2958).
CarID
The ID number of the car as defined in the IDE or -1 for random car parks (influenced by the popcycle.dat file)
PrimCol, SecCol
A car color defined in the carcols.dat file. If it is set to -1 the color will be randomly choosed.
ForceSpawn
Vehicles spawn more reliably if this is set to 1.
Alarm
The probability of triggering the alarm system (0 - 100).
DoorLock
The probability that the doors of the vehicle is locked (0 - 100).
Unknown1, Unknown2
Unknown (Zero).
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.
Grand Theft Auto IV[]
This page requires more research.
Scripts[]
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
This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of GTA Wiki.
The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See GTA Wiki:Copyright for more detail on our copyright policy.