DISABLE_VEHICLE_WEAPON
Hash
0x94B1E71B144356A5Runtime name
DisableVehicleWeaponNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF4FC6A6F67D8D856Signature
void DISABLE_VEHICLE_WEAPON(BOOL disabled, Hash weaponHash, Vehicle vehicle, Ped owner);Parameters
| Name | Type | Description |
|---|---|---|
disabled | BOOL | — |
weaponHash | Hash | — |
vehicle | Vehicle | — |
owner | Ped | — |
Returns void
Usage
DisableVehicleWeapon(disabled, weaponHash, vehicle, owner)
-- always works, by hash
Citizen.InvokeNative(0x94B1E71B144356A5, disabled, weaponHash, vehicle, owner)JavaScript and C#
DisableVehicleWeapon(disabled, weaponHash, vehicle, owner);
// by hash
Citizen.invokeNative('0x94B1E71B144356A5', disabled, weaponHash, vehicle, owner);Function.Call((Hash)0x94B1E71B144356A5, disabled, weaponHash, vehicle, owner);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.