Skip to content

resetWeaponFiringRate

Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function resets the firing rate of a custom weapon to the default one.

OOP Syntax Help! I don't understand this!

  • Method:weapon:resetFiringRate(...)

Syntax

bool resetWeaponFiringRate ( ​weapon theWeapon )
Required arguments
  • theWeapon: the weapon to reset the firing rate of.

Returns

Returns true on success, false otherwise.

  • bool: value

Code Examples

shared
local weapon = createWeapon ("mp5",0,0,10)
resetWeaponFiringRate (weapon)