# WEAPON::GET_MAX_AMMO_IN_CLIP

- **Hash:** `0xA38DCFFCEA8962FA`
- **Namespace:** WEAPON
- **Runtime name (Lua/JS):** `GetMaxAmmoInClip`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/WEAPON/GET_MAX_AMMO_IN_CLIP

## Signature

```c
int GET_MAX_AMMO_IN_CLIP(Ped ped, Hash weaponHash, BOOL p2);
```

## Parameters

- `ped` (`Ped`)
- `weaponHash` (`Hash`)
- `p2` (`BOOL`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetMaxAmmoInClip(ped, weaponHash, p2)

-- always available, by hash
local retval = Citizen.InvokeNative(0xA38DCFFCEA8962FA, ped, weaponHash, p2, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetMaxAmmoInClip(ped, weaponHash, p2);

// by hash
const retval = Citizen.invokeNative('0xA38DCFFCEA8962FA', ped, weaponHash, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xA38DCFFCEA8962FA, ped, weaponHash, p2);
```

- 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` ``.

*Sources: alloc8or RDR3 NativeDB.*
