GetWeaponFireMode
Return the fire mode of the specified weapon
Argument | Data Type | Nedeed | Default | Description |
---|---|---|---|---|
weapon | number | - | The weapon hash |
Returns
Data Type | Description |
---|---|
number | The fire mode of the weapon (1 = single, 2 = burst, 3 = auto, 4 = safety) |
Example
local retval, weapon = GetCurrentPedWeapon(PlayerPedId())
local fireMode = exports["utility_weapons"]:GetWeaponFireMode(weapon)