DISABLE_VEHICLE_WEAPON
Disables or enables the vehicle weapon weaponHash on vehicle for owner.
Signature
void DISABLE_VEHICLE_WEAPON(BOOL disabled, Hash weaponHash, Vehicle vehicle, Ped owner); // 0x94B1E71B144356A5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | disabled | BOOL |
| 2 | weaponHash | Hash |
| 3 | vehicle | Vehicle |
| 4 | owner | Ped |
Facts
| 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.
Citizen.InvokeNative(0x94B1E71B144356A5, -- DISABLE_VEHICLE_WEAPON
false, -- BOOL disabled
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0, -- Vehicle vehicle
PlayerPedId() -- Ped owner
)Citizen.invokeNative("0x94B1E71B144356A5", // DISABLE_VEHICLE_WEAPON
false, // BOOL disabled
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // Vehicle vehicle
PlayerPedId() // Ped owner
);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
);Related VEHICLE natives
- GET_VEHICLE_TRAILER_VEHICLE
- SET_DISABLE_VEHICLE_ENGINE_FIRES
- SET_DISABLE_VEHICLE_PETROL_TANK_DAMAGE
- SET_DISABLE_VEHICLE_PETROL_TANK_FIRES
- DELETE_VEHICLE
- _ARE_ANY_VEHICLE_WHEELS_DESTROYED
- _ATTACH_DRAFT_VEHICLE_HARNESS_PED
- _BREAK_LOCKS_ON_VEHICLE
- _BREAK_OFF_VEHICLE_WHEEL
- _BREAK_VEHICLE_STRAPS
- _CREATE_DRAFT_VEHICLE
- _DELETE_VEHICLE_LANTERNS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.