# WEAPON::SET_AMMO_IN_CLIP

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

## Signature

```c
BOOL SET_AMMO_IN_CLIP(Ped ped, Hash weaponHash, int ammo);
```

## Parameters

- `ped` (`Ped`)
- `weaponHash` (`Hash`)
- `ammo` (`int`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = SetAmmoInClip(ped, weaponHash, ammo)

-- always available, by hash
local retval = Citizen.InvokeNative(0xDCD2A934D65CB497, ped, weaponHash, ammo, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = SetAmmoInClip(ped, weaponHash, ammo);

// by hash
const retval = Citizen.invokeNative('0xDCD2A934D65CB497', ped, weaponHash, ammo, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xDCD2A934D65CB497, ped, weaponHash, ammo);
```

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

## See also

- [WEAPON::GET_AMMO_IN_CLIP](https://natives.borderlinerp.com/natives/WEAPON/GET_AMMO_IN_CLIP.md)
- [WEAPON::_REFILL_AMMO_IN_CLIP](https://natives.borderlinerp.com/natives/WEAPON/_REFILL_AMMO_IN_CLIP.md)

*Sources: alloc8or RDR3 NativeDB.*
