M MY Multiplayer: Wiki
Side
Kind

isPedUsingDoubleWeapons

Client

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

bool isPedUsingDoubleWeapons(ped ped)

Parameters

NameTypeDescription
pedpedThe 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)

See also