> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/network/give-weapon.md).

# Give Weapon

Gives a weapon to a ped. The weapon accepts a hash or a name (hashed for you, e.g. `"WEAPON_PISTOL"`). Ammo defaults to 999. Returns nothing.

## **Syntax**

```lua
refresh.Network.GiveWeapon(ped, weapon [, ammo])
```

## **Return**

{% hint style="success" %}
None
{% endhint %}

## Usage Example

```lua
refresh.Network.GiveWeapon(PlayerPedId(), "WEAPON_PISTOL", 250)
```
