Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.markz3d.com/llms.txt

Use this file to discover all available pages before exploring further.

Set the weapon fire mode of the specified weapon
ArgumentData TypeNedeedDefaultDescription
weaponnumber-The weapon hash
modenumber-The weapon firemode (1 = single, 2 = burst, 3 = auto, 4 = safety)

local retval, weapon = GetCurrentPedWeapon(PlayerPedId())

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