Skip to content

WeaponConfig

DekoKiyo edited this page May 12, 2024 · 1 revision

Weapon settings

Note

There are websites about GTA5's weapons.

Settings Name Descriptions Init Value Note
chance The rate of using this preset. 100
Model Weapon Model Empty String
Components The components that attach to the weapon. Optional

XML Example

Example 1

<OfficerWeapons>
  <Weapon chance="100">
    <Model>WEAPON_PISTOL</Model>
    <Components>
      <Component>COMPONENT_AT_PI_FLSH</Component>
    </Components>
  </Weapon>
  <Weapon chance="50">
    <Model>WEAPON_COMBATPISTOL</Model>
    <Components>
      <Component>COMPONENT_AT_PI_FLSH</Component>
    </Components>
  </Weapon>
</OfficerWeapons>

Example 2

<RobbersThrowableWeapons>
  <Weapon chance="50">
    <Model>WEAPON_GRENADE</Model>
  </Weapon>
  <Weapon chance="50">
    <Model>WEAPON_SMOKEGRENADE</Model>
  </Weapon>
</RobbersThrowableWeapons>
Clone this wiki locally