RedM Natives

_SET_AMMO_IN_TURRET

Hash0xBDDA0C290C228159
Runtime nameSetAmmoInTurret
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_AMMO_IN_TURRET(Vehicle vehicle, Hash turretHash, int ammo);

Parameters

NameTypeDescription
vehicleVehicle—
turretHashHash—
ammoint—

Returns void

Description

turretHash: WEAPON_TURRET_MAXIUM, WEAPON_TURRET_GATLING, WEAPON_TURRET_CANNON, WEAPON_TURRET_REVOLVING_CANNON

Usage

Lua
SetAmmoInTurret(vehicle, turretHash, ammo)

-- always works, by hash
Citizen.InvokeNative(0xBDDA0C290C228159, vehicle, turretHash, ammo)
JavaScript and C#
JavaScript
SetAmmoInTurret(vehicle, turretHash, ammo);

// by hash
Citizen.invokeNative('0xBDDA0C290C228159', vehicle, turretHash, ammo);
C#
Function.Call((Hash)0xBDDA0C290C228159, vehicle, turretHash, ammo);
  • 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`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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