Loadouts consist of one or more Vehicles, alongside one or more Peds. They are used to represent the different units that an Agency has available, and each Loadout is available to be chosen from the Backup Menu if its agency is selected in the menu.
Each vehicle and ped are added to a pool. When the Loadout is requested (e.g. it is called as backup), one vehicle will be randomly selected from the pool, as well as one or more peds - up to the maximum number of peds as defined by a NumPeds element.
Attributes
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| chance | Number | No | The chance that this loadout will be selected in favor of another. This is a normalized chance, meaning that if each chance attribute for each loadout is added up, the total should always be 100. If one loadout has a chance of 70, and another has a chance of 30, it means that there is a 70% chance that the first loadout will be selected instead of the second. |
Elements
| Element Name | Type | Required | Description |
|---|---|---|---|
| Name | Text | Yes | A name that best describes the loadout (e.g. Patrol Unit, SWAT unit, etc.) |
| Vehicles | - | Yes | A container for one or more Vehicle elements. |
| Peds | - | Yes | A container for one or more Ped elements. |
| NumPeds | Number | No | Used to specify the minimum and maximum number of peds to be selected. |
| Flags | Flags | No | If set, will make this agency child of the parent Agency you specify. |
Example
<Loadout> <Name>Patrol Unit</Name> <Vehicles> <Vehicle chance="70">sheriff</Vehicle> <Vehicle chance="30">sheriff2</Vehicle> </Vehicles> <Peds> <Ped chance="80">s_m_y_sheriff_01</Ped> <Ped chance="20">s_f_y_sheriff_01</Ped> </Peds> <NumPeds min="1" max="2" /> </Loadout>
A basic example of a Loadout in LSPDFR 0.4, defining a simple Patrol Unit for a Sheriff's Department with two vehicles and two peds.
Edited by Sam
Recommended Comments