ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setJetpackWeaponEnabled

Function

setJetpackWeaponEnabled

Stores a general permission to fire weapons while flying a jetpack (off by default). It takes one value for all weapons.

Syntax

bool setJetpackWeaponEnabled(bool enabled)

Arguments

enabledbool
true = firing allowed.Different type in MTA:SA: weaponID/string weaponName

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.
  • These MTA:SA arguments are not here: bool enabled

In MTA:SA

setJetpackWeaponEnabled(weaponID/string weaponName, bool enabled)

Returns

true on success.

Example

setJetpackWeaponEnabled(true)

Notes

State for scripts. The game does not change jetpack behaviour yet.

See also