resetWeaponFiringRate
Client-side
Server-side
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
- bool: value
Returns true on success, false otherwise.
Code Examples
shared
local weapon = createWeapon ("mp5",0,0,10)resetWeaponFiringRate (weapon)