VehicleClient

isVehicleWeaponDisabled

IS_VEHICLE_WEAPON_DISABLED0x563B65A643ED072E

The 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.

SignatureJavaScript
isVehicleWeaponDisabled(
  weaponHash: Hash,
  vehicle: Vehicle,
  owner: Ped
): boolean
SignatureLua
isVehicleWeaponDisabled(
  weaponHash: Hash,
  vehicle: Vehicle,
  owner: Ped
): boolean

Usage

JavaScript
const result = isVehicleWeaponDisabled(weaponHash, vehicle, owner);
Lua
local result = isVehicleWeaponDisabled(weaponHash, vehicle, owner)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger
vehicleVehiclenumberinteger
ownerPednumberinteger

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.

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

Open in the interactive natives reference