Elements
| Element Name | Type | Required | Description |
|---|---|---|---|
| Name | Text | Yes | A short name for the Inventory that will be shown in the Police Locker menu. |
| ScriptName | Text | Yes | This is a unique identifier for the Inventory, which is used to reference it in code and other data files. |
| Weapon + | Weapon | Yes | The Weapon that the Ped should be given. |
| StunWeapon | Weapon | No | If specified, the Ped will be able to use this Weapon as a stun gun. |
| Armor | Number | No | How much armor the Ped should be given. This can be between 0 (none) and 100 (full). |
+ Denotes one or more elements may be present.
Example
<Inventory> <Name>SWAT</Name> <ScriptName>swat</ScriptName> <Weapon chance="70"> <Model>WEAPON_CARBINERIFLE</Model> <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight --> <Component>COMPONENT_AT_AR_AFGRIP</Component> <!-- Grip --> <Component>COMPONENT_AT_SCOPE_MEDIUM</Component> <!-- Scope --> </Weapon> <Weapon chance="30"> <Model>WEAPON_COMBATPISTOL</Model> <Component>COMPONENT_AT_PI_FLSH</Component> <!-- Flashlight --> </Weapon> <StunWeapon>WEAPON_STUNGUN</StunWeapon> <Armor>100</Armor> </Inventory>
Anexample of an Inventory in LSPDFR 0.4, shown here is a simple SWAT configuration where the Ped could be equipped with either a modified Carbine Rifle or a Combat Pistol equipped with a flashlight. Additionally, the Ped is issued Armor and a Stun Gun.
Recommended Comments