# CFX::GIVE_WEAPON_TO_PED

- **Hash:** `0xC4D88A85`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GiveWeaponToPed`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GIVE_WEAPON_TO_PED

## Signature

```c
void GIVE_WEAPON_TO_PED(Ped ped, Hash weaponHash, int ammoCount, BOOL isHidden, BOOL bForceInHand);
```

## Parameters

- `ped` (`Ped`)
- `weaponHash` (`Hash`)
- `ammoCount` (`int`)
- `isHidden` (`BOOL`)
- `bForceInHand` (`BOOL`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

GIVE_WEAPON_TO_PED

**This is the server-side RPC native equivalent of the client native [GIVE_WEAPON_TO_PED](?\_0xBF0FD6E56C964FCB).**

## Usage

### Lua

```lua
GiveWeaponToPed(ped, weaponHash, ammoCount, isHidden, bForceInHand)

-- always available, by hash
Citizen.InvokeNative(0xc4d88a85, ped, weaponHash, ammoCount, isHidden, bForceInHand)
```

### JavaScript

```js
GiveWeaponToPed(ped, weaponHash, ammoCount, isHidden, bForceInHand);

// by hash
Citizen.invokeNative('0xc4d88a85', ped, weaponHash, ammoCount, isHidden, bForceInHand);
```

### C#

```csharp
Function.Call((Hash)0xc4d88a85, ped, weaponHash, ammoCount, isHidden, bForceInHand);
```

- 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: Cfx.re native reference.*
