WeaponClient

canUseWeaponOnParachute

CAN_USE_WEAPON_ON_PARACHUTE0xBC7BE5ABC0879F74

The GTA V native CAN_USE_WEAPON_ON_PARACHUTE of the WEAPON namespace, as LS:MP client scripts call it: the global function canUseWeaponOnParachute, in JavaScript and in Lua.

SignatureJavaScript
canUseWeaponOnParachute(weaponHash: Hash): boolean
SignatureLua
canUseWeaponOnParachute(weaponHash: Hash): boolean

Usage

JavaScript
const result = canUseWeaponOnParachute(weaponHash);
Lua
local result = canUseWeaponOnParachute(weaponHash)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

this returns if you can use the weapon while using a parachute
Full list of weapons by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json

Reference

Namespace
Weapon WEAPON
In the game
BOOL CAN_USE_WEAPON_ON_PARACHUTE(Hash weaponHash)
Hash
0xBC7BE5ABC0879F74

Open in the interactive natives reference