Перейти к содержанию

Player::setEnableHandcuffs

Материал из RAGE MP Wiki Archive
Версия от 11:17, 18 июля 2021; imported>MrPancakers2 (Updated page with proper info.)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Client-Side
Function

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения JavaScript



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);
})


See also