# WEAPON::SET_PED_AMMO

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

## Signature

```c
void SET_PED_AMMO(Ped ped, Hash weaponHash, int ammo);
```

## Parameters

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

## Returns

`void`

## Usage

### Lua

```lua
SetPedAmmo(ped, weaponHash, ammo)

-- always available, by hash
Citizen.InvokeNative(0x14E56BC5B5DB6A19, ped, weaponHash, ammo)
```

### JavaScript

```js
SetPedAmmo(ped, weaponHash, ammo);

// by hash
Citizen.invokeNative('0x14E56BC5B5DB6A19', ped, weaponHash, ammo);
```

### C#

```csharp
Function.Call((Hash)0x14E56BC5B5DB6A19, 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` ``.

*Sources: alloc8or RDR3 NativeDB.*
