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_handcuffes:getIsHandcuffed()

-- Other Players
local isHandcuffed = exports.msk_handcuffes: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_handcuffes:getIsHardcuffed()

-- Other Players
local isHardcuffed = exports.msk_handcuffes: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_handcuffes:gethasAnkletracker()

-- Other Players
local hasAnkletracker = exports.msk_handcuffes: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_handcuffes:gethasHeadbag()

-- Other Players
local hasHeadbag = exports.msk_handcuffes: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