Server
Events - Serverside
Cuff
Cuff a player
Parameters
item - string - The Item with which the player gets cuffed - Optional
player - player - The target Player that gets cuffed - Optional
Description
If item is nil then the Script will check the correct item from Config.RestrictItems if it's enabled or it will cuff the Player without an item (isAdminCuffed)
TriggerClientEvent('msk_handcuffs:cuff', source, item, player)
-- The player next to your player gets cuffed // Read Description
TriggerClientEvent('msk_handcuffs:cuff', source)
-- The player next to your player gets cuffed with item cuffs
TriggerClientEvent('msk_handcuffs:cuff', source, 'cuffs')
-- closestPlayer gets cuffed // Read Description
TriggerClientEvent('msk_handcuffs:cuff', source, nil, GetPlayerFromServerId(targetId))
-- closestPlayer gets cuffed with item cuffs
TriggerClientEvent('msk_handcuffs:cuff', source, 'cuffs', GetPlayerFromServerId(targetId))Hardcuff
Hardcuff a player
Parameters
item - string - The Item with which the player gets hardcuffed - Optional
player - player - The target Player that gets hardcuffed - Optional
Description
If item is nil then the Script will check the correct item from Config.RestrictItems if it's enabled or it will hardcuff the Player without an item (isAdminCuffed)
Uncuff
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
Description
If item is nil then the Script will check the correct item from Config.RestrictItems if it's enabled or it will uncuff the Player without an item (isAdminCuffed)
Ankletracker
Activate/Deactivate an Ankletracker for a player
Parameters
player - player - The target Player - Optional
Headbag
Activate/Deactivate a Headbag for a player
Parameters
player - player - The target Player - Optional
Tape
Activate/Deactivate a Tape for a player
Parameters
player - player - The target Player - Optional
Last updated