SetJetpackWeaponEnabled

From Multi Theft Auto: Wiki
Revision as of 08:18, 3 September 2012 by Tonyx97 (talk | contribs) (function weaponEnabled () setJetpackWeaponEnabled ( 27, true ) end addCommandHandler ("enableSpas12", weaponEnabled))
Jump to navigation Jump to search

This function sets a weapon usable while using the Jetpack.

Syntax

bool setJetpackWeaponEnabled(string weapon, bool enabled)

Required Arguments

  • weapon The weapon that's being set usable on a Jetpack.
  • enabled A bool representing whether the weapon is enabled or disabled.

Returns

Returns true, else false if invalid arguments are passed.

Example

Requirements

This template will be deleted.

See Also