GET_MAX_AMMO_IN_CLIP
Returns the clip capacity of the ped's weapon weaponHash.
Signature
int GET_MAX_AMMO_IN_CLIP(Ped ped, Hash weaponHash, BOOL p2); // 0xA38DCFFCEA8962FA b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
| 3 | p2 | BOOL |
Facts
| Name | GET_MAX_AMMO_IN_CLIP |
|---|---|
| Hash | 0xA38DCFFCEA8962FA |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xA38DCFFCEA8962FA, -- GET_MAX_AMMO_IN_CLIP
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
false, -- BOOL p2
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xA38DCFFCEA8962FA", // GET_MAX_AMMO_IN_CLIP
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
false, // BOOL p2
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xA38DCFFCEA8962FA, // GET_MAX_AMMO_IN_CLIP
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
false // BOOL p2
);Related WEAPON natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.