ScriptsM Cuffs
Hello! Today I’m showing you my police actions script — you can cuff other players, tie, drag them and put in a car. Script can be used as items, commands or hotkeys. Check out installation below!
Installation
Download a resource (opens in a new tab) from keymaster or buy it by buttons at the top
Install all resource dependencies
Resource start order
It's important for your resources to start in a logical order to prevent errors from missing dependencies.
start your_framework
start interact-sound
start sm-cuffs
Set up the InteractSound (opens in a new tab)
To get sounds working, you need to install sound files from zip archive following this guide:
- Add cuff.ogg, ties.ogg and tiesknife.ogg from zip archive to InteractSound/client/html/sounds
- Open fxmanifest.lua and modify following portion:
files({
'client/html/index.html',
'client/html/sounds/*'
...
})
- Now you are done with sounds
Config
There you can find an config of resource with description for all params
Config = {}
Config.Framework = 'esx' -- esx / qb / standalone
Config.CuffsItem = 'cuffs' -- Inventory item name for cuffs
Config.KeysItem = 'cuffkeys' -- Inventory item name for cuff keys
Config.TiesItem = 'ties' -- Inventory item name for ties
Config.ScissorItem = 'scissors' -- Inventory item name for scissors
Config.UseKeys = false -- Use cuff keys
Config.ResumeCuffs = true -- If you don't want the handcuffs to remove from inventory, set it to false. If you want them to remove, set it to true
Config.UseCuffHotkey = false -- Use cuff hotkey?
Config.UseDragHotkey = true -- Use drag hotkey?
Config.CuffKey = 'i' -- Hotkey of cuff command
Config.DragKey = 'o' -- Hotkey of drag command
Config.UseCommands = true -- Use commands
Config.UseItems = true -- Use items
Config.UseJobs = true -- Use jobs for framework or not
Config.PoliceJobs = { 'lssd', 'lspd', 'unemployed'} -- Police jobs for framework that can use functional of script
Config.LocalesDefault = { -- Locales
['drag_desc'] = 'Drag player',
['cuffs_desc'] = 'Cuff player',
['putcar_desc'] = 'Put player in car',
['exitcar_desc'] = 'Put player out of car',
['ties_desc'] = 'Tie player',
['no_one_nearby_cuff'] = 'No one nearby to cuff',
}
Config.Notify = function(text)
-- your export here
end