Events

All Events for msk_handcuffs

You need msk_core! - Download it here

Handcuff function

This will cuff the closest Player

-- clientside
TriggerEvent('msk_handcuffs:checkCuff', item, action)

-- example
TriggerEvent('msk_handcuffs:checkCuff', 'cuffs', 'cuff')
TriggerEvent('msk_handcuffs:checkCuff', 'hardcuffs', 'hardcuff')
TriggerEvent('msk_handcuffs:checkCuff', 'cuff_keys', 'uncuff')
-- serverside
xPlayer.triggerEvent('msk_handcuffs:checkCuff', item, action)
TriggerClientEvent('msk_handcuffs:checkCuff', source, item, action)

-- example
xPlayer.triggerEvent('msk_handcuffs:checkCuff', 'cuffs', 'cuff')
xPlayer.triggerEvent('msk_handcuffs:checkCuff', 'hardcuffs', 'hardcuff')
xPlayer.triggerEvent('msk_handcuffs:checkCuff', 'cuff_keys', 'uncuff')

Drag function

This will Drag the closest Player or the Player that you specity

-- clientside
TriggerServerEvent('msk_handcuffs:setDrag', playerID, action) -- Drags the Player with the specified ID

-- serverside
xPlayer.triggerEvent('msk_handcuffs:checkDrag', player, action)
TriggerClientEvent('msk_handcuffs:checkDrag', source, playerID, action) -- Drags the closest Player

-- example
xPlayer.triggerEvent('msk_handcuffs:checkDrag', 1, true) -- Drags the Player with the specified ID
xPlayer.triggerEvent('msk_handcuffs:checkDrag', nil, true) -- Drags the closest Player
xPlayer.triggerEvent('msk_handcuffs:checkDrag', 1, false) -- Undrags the Player with the specified ID
xPlayer.triggerEvent('msk_handcuffs:checkDrag', nil, false) -- Undrags the closest Player

Last updated