Skip to content

SetWeaponFireMode

Set the weapon fire mode of the specified weapon

Argument Data Type Nedeed Default Description
weapon number - The weapon hash
mode number - The weapon firemode (1 = single, 2 = burst, 3 = auto, 4 = safety)

Example
local retval, weapon = GetCurrentPedWeapon(PlayerPedId())

exports["utility_weapons"]:SetWeaponFireMode(weapon, 1)