# isPedUsingDoubleWeapons (Client)

> Tells 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/isPedUsingDoubleWeapons

## Syntax

```lua
bool isPedUsingDoubleWeapons(ped ped)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |

## Returns

`true` if it holds the weapon in both hands, `false` if not or if the ped does not exist in the game.

## Example

```lua
bindKey("k", "down", function()
    setPedDoubleWeapons(localPlayer, not isPedUsingDoubleWeapons(localPlayer))
end)
```

## See also

- [setPedDoubleWeapons (Client)](https://wiki.mymp.gg/en/setPedDoubleWeapons.md): Sets whether a ped also holds a copy of its weapon in the left hand.
