isVehicleWeaponDisabled
IS_VEHICLE_WEAPON_DISABLED0x563B65A643ED072EThe GTA V native IS_VEHICLE_WEAPON_DISABLED of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleWeaponDisabled, in JavaScript and in Lua.
isVehicleWeaponDisabled(
weaponHash: Hash,
vehicle: Vehicle,
owner: Ped
): booleanisVehicleWeaponDisabled(
weaponHash: Hash,
vehicle: Vehicle,
owner: Ped
): booleanUsage
JavaScript
const result = isVehicleWeaponDisabled(weaponHash, vehicle, owner);Lua
local result = isVehicleWeaponDisabled(weaponHash, vehicle, owner)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponHash | Hash | number | integer |
vehicle | Vehicle | number | integer |
owner | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Full list of weapons by DurtyFree (Search for VEHICLE_*): https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json
Reference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL IS_VEHICLE_WEAPON_DISABLED(Hash weaponHash, Vehicle vehicle, Ped owner)- Hash
0x563B65A643ED072E- Introduced
- Game build 1011 legacy numbering
- Formerly
_IS_VEHICLE_WEAPON_DISABLED