The carrec.img file stores a set of R3 files (files with an extension .rrr). These files contain path information used by the mission script for Grand Theft Auto: San Andreas and Grand Theft Auto IV. The paths are predefined and look unnatural during gameplay because the movement of the vehicle is very rigid. The paths ignore many stuff in the game including gravity and obstacles.

Original San Andreas installation has 426 R3 paths. Maximum number of these paths is 475. GTA IV increases this limit. By default there are 1813 R3 paths. The limit appears to be located somewhere beyond 3000.

GTA IV does not use an image to store the carrec paths. They are located in the directory ...\common\data\paths\.

The RRR file structure

Each RRR file contains no header, only a binary data, being a set of structures of 32 bytes in length each, described separate path points. The data in a path point structure goes as the following:

When the vehicle is moving along the path, its XYZ structure is filled with the information from the proper fields of checkpoint data.

Mission Script

San Andreas

You can use the following opcodes to do stuff to your paths.07C0 - Loads the path07C1 - Checks if the path has been loaded0873 - Releases the path from memory05EB - Assigns a vehicle to the path0705 - Assigns a vehicle to the path085E - Assigns a vehicle to a looped path05EC - Releases the vehicle from a path05ED - Freezes the vehicle along the path05EE - Unfreezes the vehicle along the path06FD - Sets the speed multiplier of the vehicle along the path0706 - Advances the vehicle along the path060E - Checks if a path is assigned to the vehicle
If you load a non-existant path to a vehicle, path 1 will be loaded instead.

External links

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 Grand Theft Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.See Grand Theft Wiki:Copyright for more information.