A Vehicle element simply defines a vehicle by model name. Aside from this, it can contain a number of attributes which allow for more advanced configurations.
Attributes
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| Chance | Number | No | The chance that this vehicle will be selected in favor of another. This is a normalized chance, meaning that if each chance attribute for each vehicle is added up, the total should always be 100. If one vehicle has a chance of 70, and another has a chance of 30, it means that there is a 70% chance that the first vehicle will be selected instead of the second. |
| Livery | Number | No | Specifies a specific livery which the vehicle should use. Livery IDs start at 1 to match their associated texture, e.g. police_sign_1. This only works on vehicles that have liveries (most vanilla police cars do, where the livery is used for the number on the roof). |
| Weapon | Text | No | This is a special attribute which can be used to enable a mounted weapon on a vehicle that has them (e.g. fighter planes, attack helicopters, etc.) |
| Extra_1 - Extra_15 | True/False | No |
See below. |
| Is_Mp | True/False | No |
Is this Vehicle a MP DLC vehicle? MP DLC vehicles need workarounds to work in singleplayer. Default = False. If set to true, vehicle will only be considered if MP DLC workaround have been applied by LSPDFR, or MP DLC vehicles have been forcefully enabled. This should only be set for Rockstar patch introduced multiplayer DLC vehicles. |
| Use_Modkit_Liveries | True/False | No |
Liveries can be standard vehicle liveries, or for some vehicles, they can be applied via modkits. Default = False. If set to true, duty menu will toggle through modkit liveries and hardcoded livery will be set by applying a vehicle mod. Please note that liveries should start at 1 even for modkit liveries. (so e.g. DLC livery 0 = 1 in LSPDFR) |
| Livery_Multi | Number array | No |
If specified, overrides Livery. A comma separated number list to specify multiple liveries in the same Vehicle definition. |
Vehicle Extras
Most vehicles in Grand Theft Auto V have 'extra components', which can be toggled on or off to give vehicles a different look or to add additional details/special parts. You can turn these extra parts on or off using the corresponding Extra_ attribute for the part which you wish to enable or disable.
Example
<Vehicle extra_1="false" extra_2="false">police</Vehicle>
A basic example of a Vehicle element, taken from the LSPD Local SWAT unit in LSPDFR 0.4. The vehicle (Police Cruiser) is set to spawn without Extra_1 and Extra_2, meaning it will have no lightbar.
Additional Information
List of vehicle models: https://wiki.gt-mp.net/index.php/Vehicle_Models
Is_Dlc and Use_Modkit_Liveries are new to build 8747.
Livery_Multi was introduced in build 8757.
Is_Dlc was changed to Is_Mp is build vNext.
Recommended Comments