Weapon::canUseOnParachute
JavaScript
Checks whether given weapon can be used while parachuting.
Required Params
- handle number
Return Value
- boolean
Syntax
mp.game.weapon.canUseOnParachute(handle);
Example
Client-Side
const weapon = mp.players.local.weapon;
const canUseOnParachute = mp.game.weapon.canUseOnParachute(weapon);
mp.console.logInfo(`Players weapon ${canUseOnParachute ? 'can be used' : 'cannot be used' } while parachuting`);