In LSPDFR 0.4, the various agencies (i.e. police agencies, fire departments, etc.) are defined within the Agency XML file. Generally, an Agency in LSPDFR is a representation of some kind of police or law-enforcement organization, although other entities like fire departments can also be present.
It's worth noting as well that Agencies can be used to represent smaller divisions within an Agency too. This is done by setting the Parent element in the child Agency's XML to the Script Name of the parent Agency. In the default configuration for LSPDFR 0.4, this is done for the SWAT teams of the police and sheriffs.
Agencies are referenced by their ScriptName.
Elements
| Element Name | Type | Required | Description |
|---|---|---|---|
| Name | Text | Yes | This is the full name of the agency, e.g. Los Santos Police Department |
| ShortName | Text | Yes | This is generally an initialism of the name, e.g. LSPD |
| TextureDictionary | Text | No | The name of the texture dictionary to be used for HUD notifications. |
| TextureName | Text | No | The name of the texture in the above dictionary. |
| ScriptName | Text | Yes | This is a unique identifier for this agency, which is used to cross-reference it in code and other data. |
| Inventory | Inventory | No | The default Inventory for the agency - it will be used if a Ped doesn't have a specific inventory assigned. |
| Parent | Agency | No | If set, will make this agency child of the parent Agency you specify. |
| Loadout + | Loadout | Yes | A Loadout defines which Vehicles and Peds an agency has. |
| ExcludeFromBackupMenu | True/False | No | Can be set to true to stop the Agency being available in the Backup Menu using the Agency switch at the top of the menu. The agency can still respond as a backup unit when called in differently, e.g. via Local Patrol. |
| BadgeModel Added in 0.4.2 | Text | No | Can be used to specify a custom Police Badge model to be used by this agency. |
| ShieldModel Added in 0.4.2 | Text | No | Can be used to specify a custom Ballistic Shield model to be used by this agency. |
| EvidenceMarkerModel Added in 0.4.8 | Text | No | Can be used to specify a custom Evidence Marker model to be used by this agency. |
+ Denotes one or more elements may be present.
Example
<Agency> <Name>San Andreas Highway Patrol</Name> <ShortName>SAHP</ShortName> <ScriptName>sahp</ScriptName> <Inventory>default</Inventory> <Loadout> <Name>Motor Unit</Name> <Vehicles> <Vehicle>policeb</Vehicle> </Vehicles> <Peds> <Ped comp_uppr="1" comp_decl="1" comp_lowr="0" prop_head="0" helmet="true">s_m_y_hwaycop_01</Ped> </Peds> <NumPeds min="1" max="1" /> </Loadout> </Agency>
A basic example of an Agency in LSPDFR 0.4 with only one Loadout (the bike officer).
Edited by Sam
Recommended Comments