Client

Exports - Clientside

getIsHandcuffed

Check if a player is handcuffed or not

Parameters player - table - This is options and only for other players

Retuns isHandcuffed - boolean - If the Player is handcuffed or not

-- Self
local isHandcuffed = exports.msk_handcuffs:getIsHandcuffed()

-- Other Players
local isHandcuffed = exports.msk_handcuffs:getIsHandcuffed({source = targetId})

getIsHardcuffed

Check if a player is hardcuffed or not

Parameters player - table - This is options and only for other players

Retuns isHardcuffed - boolean - If the Player is hardcuffed or not

-- Self
local isHardcuffed = exports.msk_handcuffs:getIsHardcuffed()

-- Other Players
local isHardcuffed = exports.msk_handcuffs:getIsHardcuffed({source = targetId})

gethasAnkletracker

Check if a player has an Ankletracker or not

Parameters player - table - This is options and only for other players

Retuns hasAnkletracker - boolean - If the Player has an Ankletracker or not

-- Self
local hasAnkletracker = exports.msk_handcuffs:gethasAnkletracker()

-- Other Players
local hasAnkletracker = exports.msk_handcuffs:gethasAnkletracker({source = targetId})

gethasHeadbag

Check if a player has a Headbag or not

Parameters player - table - This is options and only for other players

Retuns hasHeadbag - boolean - If the Player has a Headbag or not

-- Self
local hasHeadbag = exports.msk_handcuffs:gethasHeadbag()

-- Other Players
local hasHeadbag = exports.msk_handcuffs:gethasHeadbag({source = targetId})

cuffPlayer

Cuff a player

Parameters item - string - The Item with which the player gets cuffed - Optional player - player - The target Player that gets cuffed - Optional

exports.msk_handcuffs:cuffPlayer(item, player)

-- The player next to your player gets cuffed without item (isAdminCuffed)
exports.msk_handcuffs:cuffPlayer()
-- The player next to your player gets cuffed with cuffs
exports.msk_handcuffs:cuffPlayer('cuffs')
-- closestPlayer gets cuffed without item (isAdminCuffed)
exports.msk_handcuffs:cuffPlayer(nil, closestPlayer)
-- closestPlayer gets cuffed with cuffs
exports.msk_handcuffs:cuffPlayer('cuffs', closestPlayer)

hardcuffPlayer

Hardcuff a player

Parameters item - string - The Item with which the player gets hardcuffed - Optional player - player - The target Player that gets hardcuffed - Optional

exports.msk_handcuffs:hardcuffPlayer(item, player)

-- The player next to your player gets cuffed without item (isAdminCuffed)
exports.msk_handcuffs:hardcuffPlayer()
-- The player next to your player gets cuffed with cuffs
exports.msk_handcuffs:hardcuffPlayer('hardcuff')
-- closestPlayer gets cuffed without item (isAdminCuffed)
exports.msk_handcuffs:hardcuffPlayer(nil, closestPlayer)
-- closestPlayer gets cuffed with cuffs
exports.msk_handcuffs:hardcuffPlayer('hardcuff', closestPlayer)

uncuffPlayer

Uncuff a player

It will check if the item is correct or not to uncuff someone.

Parameters item - string - The Item with which the player gets uncuffed - Optional player - player - The target Player that gets uncuffed - Optional

exports.msk_handcuffs:uncuffPlayer(item, player)

-- The player next to your player gets cuffed without item (isAdminCuffed)
exports.msk_handcuffs:uncuffPlayer()
-- The player next to your player gets cuffed with cuffs
exports.msk_handcuffs:uncuffPlayer('cuff_keys')
-- closestPlayer gets cuffed without item (isAdminCuffed)
exports.msk_handcuffs:uncuffPlayer(nil, closestPlayer)
-- closestPlayer gets cuffed with cuffs
exports.msk_handcuffs:uncuffPlayer('cuff_keys', closestPlayer)

ankleTrackerPlayer

Activate/Deactivate an Ankletracker for a player

Parameters player - player - The target Player - Optional

exports.msk_handcuffs:ankleTrackerPlayer(player)

-- The player next to your player
exports.msk_handcuffs:ankleTrackerPlayer()
-- Specific Player
exports.msk_handcuffs:ankleTrackerPlayer(closestPlayer)

headbagPlayer

Activate/Deactivate a Headbag for a player

Parameters player - player - The target Player - Optional

exports.msk_handcuffs:headbagPlayer(player)

-- The player next to your player
exports.msk_handcuffs:headbagPlayer()
-- Specific Player
exports.msk_handcuffs:headbagPlayer(closestPlayer)

Last updated