getJetpackWeaponEnabled | Multi Theft Auto: Wiki Skip to content

getJetpackWeaponEnabled

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 checks if a weapon is usable while on a Jetpack.

Syntax

bool getJetpackWeaponEnabled ( string weapon )
Required Arguments
  • weapon: The weapon that's being checked if it's usable on a Jetpack.

Returns

  • bool: value

Returns true if the weapon is enabled, else false if the weapon isn't or invalid arguments are passed.

Code Examples

shared
addCommandHandler("isJPEnabled",function(ped,_,wep)
if ped then
outputChatBox(tostring(getJetpackWeaponEnabled(wep)),ped)
end
end)

See Also

World Functions