MSK Scripts
TebexGithubDiscordMusiker15
  • MSK Scripts
    • Welcome
  • Common Issues
    • Keymaster
  • Miscellaneous
    • Change Notifications
  • Scripts
    • MSK Core
      • Installation
      • Functions
        • Client
          • Ace Permission
          • Commands
          • Coords
          • Player
          • Points
          • Request
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
          • Vehicle
        • Shared
          • String
          • Math
          • Table
          • Timeout
          • Vector
        • Server
          • Ace Permission
          • Ban System
          • Commands
          • Player
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
    • MSK Banking
      • Installation
        • Paycheck Transaction
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Server Callbacks
    • MSK EngineToggle
      • Guides
      • Exports
        • Client
      • Event Handler
        • Client
        • Server
    • MSK Fuel
      • Config
      • Exports
        • Client
    • MSK Garage
      • Config
      • Exports
        • Client
    • MSK Handcuffs
      • Guides
        • General Edits for Jobs
        • Jaksam Job Creator
        • Multichar
        • ox_inventory
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Event Handlers
    • MSK Radio
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Server
    • MSK Simcard
      • Installation
        • Config.Database
      • Config
    • MSK VehicleKeys
      • Guides
        • Installation
        • Integrations
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
    • MSK Whitelist
      • Config
      • Exports
        • Client
        • Server
    • MSK Weaponammo
Powered by GitBook
On this page
  • Cuff
  • Hardcuff
  • Uncuff
  • Ankletracker
  • Headbag
  • Tape
  1. Scripts
  2. MSK Handcuffs
  3. Events

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)

TriggerClientEvent('msk_handcuffs:hardcuff', source, item, player)

-- The player next to your player gets hardcuffed // Read Description
TriggerClientEvent('msk_handcuffs:hardcuff', source)
-- The player next to your player gets hardcuffed with item hardcuff
TriggerClientEvent('msk_handcuffs:hardcuff', source, 'hardcuff')
-- closestPlayer gets hardcuffed // Read Description
TriggerClientEvent('msk_handcuffs:hardcuff', source, nil, GetPlayerFromServerId(targetId))
-- closestPlayer gets hardcuffed with item hardcuff
TriggerClientEvent('msk_handcuffs:hardcuff', source, 'hardcuff', GetPlayerFromServerId(targetId))

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)

TriggerClientEvent('msk_handcuffs:uncuff', source, item, player)

-- The player next to your player gets uncuffed // Read Description
TriggerClientEvent('msk_handcuffs:uncuff', source)
-- The player next to your player gets uncuffed with item cuff_keys
TriggerClientEvent('msk_handcuffs:uncuff', source, 'cuff_keys')
-- closestPlayer gets uncuffed // Read Description
TriggerClientEvent('msk_handcuffs:uncuff', source, nil, GetPlayerFromServerId(targetId))
-- closestPlayer gets uncuffed with item cuff_keys
TriggerClientEvent('msk_handcuffs:uncuff', source, 'cuff_keys', GetPlayerFromServerId(targetId))

Ankletracker

Activate/Deactivate an Ankletracker for a player

Parameters player - player - The target Player - Optional

TriggerClientEvent('msk_handcuffs:setAnkletracker', source, player)

-- The player next to your player
TriggerClientEvent('msk_handcuffs:setAnkletracker', source)
-- Specific player
TriggerClientEvent('msk_handcuffs:setAnkletracker', source, GetPlayerFromServerId(targetId))

Headbag

Activate/Deactivate a Headbag for a player

Parameters player - player - The target Player - Optional

TriggerClientEvent('msk_handcuffs:setHeadbag', source, player)

-- The player next to your player
TriggerClientEvent('msk_handcuffs:setHeadbag', source)
-- Specific player
TriggerClientEvent('msk_handcuffs:setHeadbag', source, GetPlayerFromServerId(targetId))

Tape

Activate/Deactivate a Tape for a player

Parameters player - player - The target Player - Optional

TriggerClientEvent('msk_handcuffs:setTape', source, player)

-- The player next to your player
TriggerClientEvent('msk_handcuffs:setTape', source)
-- Specific player
TriggerClientEvent('msk_handcuffs:setTape', source, GetPlayerFromServerId(targetId))

Last updated 8 months ago