Skip to main content

Player::setEnableHandcuffs

Client-side function

When enabled, players can no longer pull out a weapon. The weapon wheel can still be opened, but it won't equip any selected weapon.

NOTE: This does not add the hand cuffs or play the animation on the player, this only stops weapons being equiped.

Syntax​

player.setEnableHandcuffs(toggle);

Parameters​

  • toggle: Boolean

Example​

Enables the cuff effect when the event is called.

Client-Side

mp.events.add('cuffPlayer', (item) => {
mp.players.local.setEnableHandcuffs(true);
})