GET_WEAPON_CLIP_SIZE
Returns the clip size of the weapon weaponHash.
Signature
int GET_WEAPON_CLIP_SIZE(Hash weaponHash); // 0xD3750CCC00635FC2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponHash | Hash |
Facts
| Name | GET_WEAPON_CLIP_SIZE |
|---|---|
| Hash | 0xD3750CCC00635FC2 |
| 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(0xD3750CCC00635FC2, -- GET_WEAPON_CLIP_SIZE
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xD3750CCC00635FC2", // GET_WEAPON_CLIP_SIZE
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xD3750CCC00635FC2, // GET_WEAPON_CLIP_SIZE
(uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Related WEAPON natives
- GET_WEAPON_DEGRADATION
- GET_WEAPON_PERMANENT_DEGRADATION
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- GET_AMMO_IN_CLIP
- GET_AMMO_IN_PED_WEAPON
- GET_BEST_PED_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
- GET_MAX_AMMO_IN_CLIP
- GET_PED_AMMO_TYPE_FROM_WEAPON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.