_SET_AMMO_IN_TURRET
Sets the ammo count of the turret turretHash on the vehicle.
Signature
void _SET_AMMO_IN_TURRET(Vehicle vehicle, Hash turretHash, int ammo); // 0xBDDA0C290C228159 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | turretHash | Hash |
| 3 | ammo | int |
Facts
| 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.
Citizen.InvokeNative(0xBDDA0C290C228159, -- _SET_AMMO_IN_TURRET
0, -- Vehicle vehicle
GetHashKey("name"), -- Hash turretHash
0 -- int ammo
)Citizen.invokeNative("0xBDDA0C290C228159", // _SET_AMMO_IN_TURRET
0, // Vehicle vehicle
GetHashKey("name"), // Hash turretHash
0 // int ammo
);Function.Call((Hash)0xBDDA0C290C228159, // _SET_AMMO_IN_TURRET
0, // Vehicle vehicle
(uint)API.GetHashKey("name"), // Hash turretHash
0 // int ammo
);Related WEAPON natives
- _SET_AMMO_TYPE_FOR_PED_WEAPON
- _SET_AMMO_TYPE_FOR_PED_WEAPON_INVENTORY
- SET_AMMO_IN_CLIP
- _SET_PED_INFINITE_AMMO_CLIP
- _GET_AMMO_IN_CLIP_BY_INVENTORY_UID
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _REFILL_AMMO_IN_CLIP
- _REFILL_AMMO_IN_CURRENT_PED_WEAPON
- GET_AMMO_IN_CLIP
- GET_AMMO_IN_PED_WEAPON
- GET_MAX_AMMO_IN_CLIP
- SET_PED_AMMO
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.