SetJetpackWeaponEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(function weaponEnabled () setJetpackWeaponEnabled ( 27, true ) end addCommandHandler ("enableSpas12", weaponEnabled))
Line 13: Line 13:
Returns true, else false if invalid arguments are passed.
Returns true, else false if invalid arguments are passed.


==Example==  
==Example==
<math>function weaponEnabled ()
setJetpackWeaponEnabled ( 27, true )
end
addCommandHandler ("enableSpas12", weaponEnabled)</math>


==Requirements==
==Requirements==

Revision as of 08:18, 3 September 2012

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