RedM Natives

DISABLE_VEHICLE_WEAPON

Hash0x94B1E71B144356A5
Runtime nameDisableVehicleWeapon
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF4FC6A6F67D8D856

Signature

void DISABLE_VEHICLE_WEAPON(BOOL disabled, Hash weaponHash, Vehicle vehicle, Ped owner);

Parameters

NameTypeDescription
disabledBOOL—
weaponHashHash—
vehicleVehicle—
ownerPed—

Returns void

Usage

Lua
DisableVehicleWeapon(disabled, weaponHash, vehicle, owner)

-- always works, by hash
Citizen.InvokeNative(0x94B1E71B144356A5, disabled, weaponHash, vehicle, owner)
JavaScript and C#
JavaScript
DisableVehicleWeapon(disabled, weaponHash, vehicle, owner);

// by hash
Citizen.invokeNative('0x94B1E71B144356A5', disabled, weaponHash, vehicle, owner);
C#
Function.Call((Hash)0x94B1E71B144356A5, disabled, weaponHash, vehicle, owner);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.