ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setWeaponFiringRate

Function

setWeaponFiringRate

ServerWeaponsIdentical to MTA:SA

Sets a scripted weapon's fire rate multiplier.

Syntax

bool setWeaponFiringRate(weapon weapon, float rate)

Arguments

weaponweapon
The scripted weapon.
ratefloat
Multiplier, 1 is the factory rate, 2 is twice as fast.

Returns

true on success.

Example

setWeaponFiringRate(turret, 2)

See also