# setPedDoubleWeapons (Client)

> Sets whether a ped also holds a copy of its weapon in the left hand.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Peds
- **URL**: https://wiki.mymp.gg/en/setPedDoubleWeapons

## Syntax

```lua
bool setPedDoubleWeapons(ped ped, bool doubleWeapons)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |
| `doubleWeapons` | `bool` | `true` to show the weapon in both hands. |

## Returns

`true` if it was set, `false` if the ped does not exist in the game.

The current weapon's model is attached again at once.

## Example

```lua
setPedDoubleWeapons(localPlayer, true)
```

## See also

- [isPedUsingDoubleWeapons (Client)](https://wiki.mymp.gg/en/isPedUsingDoubleWeapons.md): Tells whether a ped also holds a copy of its weapon in the left hand.
- [giveWeapon (Server)](https://wiki.mymp.gg/en/giveWeapon.md): Gives a weapon with ammo to a ped or player.
