Weapon::canUseWeaponOnParachute

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

mp.game.weapon.canUseWeaponOnParachute(weaponHash);

Required Arguments

  • weaponHash: Model hash or name

Return value

  • Boolean

Example

mp.keys.bind(0x76, false, function () { // F7 key
    let weaponHash = mp.game.invoke(`0x0A6DB4965674D243`, mp.players.local.handle); //GET_SELECTED_PED_WEAPON
    let canUse = mp.game.weapon.canUseWeaponOnParachute(weaponHash);
    mp.gui.chat.push(`hash: ${weaponHash}, canUse: ${canUse}`);
})

See also