rg_get_weapon_info
Syntax
native any:rg_get_weapon_info(any:...);
Usage
| Parameter | Description |
|---|---|
| weapon | name or id Weapon id, see WEAPON_* constants, WeaponIdType or weapon_* name |
| WpnInfo:type | Info type, see WI_* constants |
Description
Returns specific information about the weapon.
Note
weapon_* name can only be used to get WI_ID
Return
Weapon information
Error
If weapon_id or type are out of bounds, an error will be thrown