Tebex [2.20€]: https://www.msk-scripts.de/package/5159927
Preview:
Description
➥ Cuff, Hardcuff or Uncuff the Player next to you
➥ Cuff players with items
➥ Cuff players with commands
➥ Timer for uncuff players
➥ Animations and Sounds
➥ Admin commands
Events and exports are included to add it f.e. in your policejob
Config
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
Config.Debug = true
Config.ESX = {
version = '1.2', -- Set '1.2' or 'legacy'
getSharedObject = 'esx:getSharedObject' -- Only needed if version set to '1.2'
}
----------------------------------------------------------------
-- Add the Webhook Link in server_discordlog.lua
Config.DiscordLog = true
Config.botColor = "6205745"
Config.botName = "MSK Scripts"
Config.botAvatar = "https://i.imgur.com/PizJGsh.png"
----------------------------------------------------------------
-- Items // You have to use 'cuffs' before you can use 'hardcuffs'
Config.Items = {
cuff = 'cuffs', -- item: 'cuffs' // DisableAllControlActions exept Movement
hardcuff = 'hardcuff', -- item: 'hardcuff' // Freeze Player Position
uncuff = 'cuff_keys' -- item: 'cuff_keys' // Uncuff a Player
}
Config.InteractSound = true -- You need InteractSound for that (https://forum.cfx.re/t/release-play-custom-sounds-for-interactions/8282)
Config.checkOnPlayerLoaded = true -- Check cuff status from DB if the player join the server and cuffs the player if cuff Stauts is true
----------------------------------------------------------------
Config.Timer = {
enable = true, -- Set false to disable this feature
time = 30 -- in minutes // After this time the player gets uncuffed
}
----------------------------------------------------------------
-- Player Commands
Config.PlayerCommands = {
cuffCommand = 'cuff', -- default: 'cuff' // Set false if you dont want the Command
hardcuffCommand = 'hardcuff', -- default: 'hardcuff' // Set false if you dont want the Command
uncuffCommand = 'uncuff' -- default: 'uncuff' // Set false if you dont want the Command
}
----------------------------------------------------------------
-- Admin Commands
Config.AdminGroups = {'superadmin', 'admin'} -- You can set multiple groups
Config.AdminCommands = {
cuffCommand = 'adcuff', -- default: 'cuff' // example: /cuff playerID
hardcuffCommand = 'adhardcuff', -- default: 'hardcuff' // example: /adhardcuff playerID
uncuffCommand = 'aduncuff' -- default: 'uncuff' // example: /aduncuff playerID
}
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
-- Look for type == 'client' and type == 'server'
Config.Notification = function(src, type, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
if type == 'client' then -- clientside
ESX.ShowNotification(message) -- replace this with your Notify
elseif type == 'server' then -- serverside
xPlayer.showNotification(message) -- replace this with your Notify
end
end
----------------------------------------------------------------
-- !!! This functions are both clientside ONLY !!!
Config.Method = 'whitelist' -- Set to 'whitelist' or 'blacklist'
-- -- This is triggerd if the player gets uncuffed
Config.Handcuffed = function()
if Config.Method:match('whitelist') then
EnableControlAction(0, 1, true) -- Camera Movement
EnableControlAction(0, 2, true) -- Camera Movement
EnableControlAction(0, 245, true) -- T
EnableControlAction(0, 23, true) -- F (Enter Vehicle)
EnableControlAction(0, 75, true) -- F (Exit Vehicle)
elseif Config.Method:match('blacklist') then
DisableControlAction(0, 24, true) -- Attack
DisableControlAction(0, 257, true) -- Attack 2
DisableControlAction(0, 25, true) -- Aim
DisableControlAction(0, 263, true) -- Melee Attack 1
DisableControlAction(0, 45, true) -- Reload
DisableControlAction(0, 22, true) -- Jump
DisableControlAction(0, 44, true) -- Cover
DisableControlAction(0, 37, true) -- Select Weapon
DisableControlAction(0, 288, true) -- F1
DisableControlAction(0, 289, true) -- F2
DisableControlAction(0, 170, true) -- F3
DisableControlAction(0, 167, true) -- F6
DisableControlAction(0, 73, true) -- X
DisableControlAction(2, 199, true) -- P
DisableControlAction(0, 59, true) -- Disable steering in vehicle
DisableControlAction(0, 71, true) -- Disable driving forward in vehicle
DisableControlAction(0, 72, true) -- Disable reversing in vehicle
DisableControlAction(2, 36, true) -- Disable going stealth
DisableControlAction(0, 47, true) -- Disable weapon
DisableControlAction(0, 264, true) -- Disable melee
DisableControlAction(0, 257, true) -- Disable melee
DisableControlAction(0, 140, true) -- Disable melee
DisableControlAction(0, 141, true) -- Disable melee
DisableControlAction(0, 142, true) -- Disable melee
DisableControlAction(0, 143, true) -- Disable melee
end
end
-- This is triggerd if the player gets uncuffed
Config.notHandcuffed = function()
-- Add your code here
end
Alles anzeigen
Optional Requirements
➥ InteractSounds (https://forum.cfx.re/t/release…nds-for-interactions/8282)
Requirements
➥ ESX 1.2 and above
➥ mysql-async or oxmysql
My other Scripts
➥ https://forum.cfx.re/t/release…store-after-relog/4812243
➥ https://forum.cfx.re/t/release…ing-with-nativeui/4859560
➥ https://forum.cfx.re/t/release…rd-usable-simcard/4847008
➥ https://forum.cfx.re/t/release…-database-feature/4853593
➥ https://forum.cfx.re/t/release…-components-tints/4793783