From Multi Theft Auto: Wiki
Revision as of 14:58, 4 July 2016 by Walid (talk | contribs) (Added small example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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


bool resetWeaponFiringRate ( weapon theWeapon )

OOP Syntax Help! I don't understand this!

Method: weapon:resetFiringRate(...)

Required Arguments

  • theWeapon: the weapon to reset the firing rate of.


Returns true on success, false otherwise.


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


Minimum supported server n/a
Minimum supported client 1.3.0-9.04555

Note: Using this function/event requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04555" />

See also