The Lab
WEAPON native

_SET_AMMO_IN_TURRET

returns void3 paramsbuild 1207

Sets the ammo count of the turret turretHash on the vehicle.

Signature

C
void _SET_AMMO_IN_TURRET(Vehicle vehicle, Hash turretHash, int ammo); // 0xBDDA0C290C228159 b1207

Parameters

#NameType
1vehicleVehicle
2turretHashHash
3ammoint

Facts

Facts about _SET_AMMO_IN_TURRET
Name
_SET_AMMO_IN_TURRET
Hash
0xBDDA0C290C228159
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(0xBDDA0C290C228159, -- _SET_AMMO_IN_TURRET
  0, -- Vehicle vehicle
  GetHashKey("name"), -- Hash turretHash
  0 -- int ammo
)
JavaScript
Citizen.invokeNative("0xBDDA0C290C228159", // _SET_AMMO_IN_TURRET
  0, // Vehicle vehicle
  GetHashKey("name"), // Hash turretHash
  0 // int ammo
);
C#
Function.Call((Hash)0xBDDA0C290C228159, // _SET_AMMO_IN_TURRET
  0, // Vehicle vehicle
  (uint)API.GetHashKey("name"), // Hash turretHash
  0 // int ammo
);
All WEAPON natives

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