The Lab
VEHICLE native

DISABLE_VEHICLE_WEAPON

returns void4 paramsbuild 1207

Disables or enables the vehicle weapon weaponHash on vehicle for owner.

Signature

C
void DISABLE_VEHICLE_WEAPON(BOOL disabled, Hash weaponHash, Vehicle vehicle, Ped owner); // 0x94B1E71B144356A5 b1207

Parameters

#NameType
1disabledBOOL
2weaponHashHash
3vehicleVehicle
4ownerPed

Facts

Facts about DISABLE_VEHICLE_WEAPON
Name
DISABLE_VEHICLE_WEAPON
Hash
0x94B1E71B144356A5
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x94B1E71B144356A5, -- DISABLE_VEHICLE_WEAPON
  false, -- BOOL disabled
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  0, -- Vehicle vehicle
  PlayerPedId() -- Ped owner
)
JavaScript
Citizen.invokeNative("0x94B1E71B144356A5", // DISABLE_VEHICLE_WEAPON
  false, // BOOL disabled
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // Vehicle vehicle
  PlayerPedId() // Ped owner
);
C#
Function.Call((Hash)0x94B1E71B144356A5, // DISABLE_VEHICLE_WEAPON
  false, // BOOL disabled
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // Vehicle vehicle
  API.PlayerPedId() // Ped owner
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.