isPedUsingDoubleWeapons
Client
Tells whether a ped also holds a copy of its weapon in the left hand.
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
bindKey("k", "down", function()
setPedDoubleWeapons(localPlayer, not isPedUsingDoubleWeapons(localPlayer))
end)