SHOWCASE VIDEO
About Advanced Arresting
Arrest and unarrest sticks are replaced with a custom handcuff swep used to arrest, unarrest and even handcuff players. Handcuffed players are unable to swap weapons while handcuffed.In order to arrest a player you must first handcuff them. Once they're handcuffed, you can arrest them (left click) and the arrest options will open. Select any amount of seconds from the slider and put a bail if you wish. Setting the bail to 0 will force the player to stay in jail until they're released (unarrested or time runs out).
Handcuffs automatically replaces arrest/unarrest stick from DarkRP. Additionally, the default stun stick is replaced with a custom police baton.
Features



















Other details
This addon supports DarkRP 2.7.0+
Extract
It is important that you configure which police teams you want to give these weapons to. Head to the config file in
JAILER NPC
If you want to use the jailer npc then you can enable it in the configuration by setting
This will disable arresting through the handcuffs and police officers must bring the criminal to the NPC in order to arrest them.
To setup the Jailer NPC you just run the console command
Stay in the position and aim in the direction you wish to set the NPC at. You can run the command again to reset the position at another location/direction.
CONTENT
Here is a link to the workshop, which is also automatically set to download in the script.
https://steamcommunity.com/sharedfiles/filedetails/?id=2206554385
Make sure to add this to your servers workshop collection as well.
Extract
darkrpadvancedarrestingsystem
to addons!It is important that you configure which police teams you want to give these weapons to. Head to the config file in
lua/ch_adv_arresting/shared/arrest_config.lua
and configure the table CH_ADVArrest.Config.AllowedTeams
JAILER NPC
If you want to use the jailer npc then you can enable it in the configuration by setting
CH_ADVArrest.Config.EnableJailerNPC
to true
.This will disable arresting through the handcuffs and police officers must bring the criminal to the NPC in order to arrest them.
To setup the Jailer NPC you just run the console command
ch_adv_arrest_jailer_pos
in-game as an admin.Stay in the position and aim in the direction you wish to set the NPC at. You can run the command again to reset the position at another location/direction.
CONTENT
Here is a link to the workshop, which is also automatically set to download in the script.
https://steamcommunity.com/sharedfiles/filedetails/?id=2206554385
Make sure to add this to your servers workshop collection as well.
To customize the general settings, go to
There are approximately 20 different configuration options in the general settings. I can add any configuration you would like as well. Please just submit a support ticket with your request, and I will see if it's possible.
darkrpadvancedarrestingsystem/lua/ch_adv_arresting/shared/arrest_config.lua
There are approximately 20 different configuration options in the general settings. I can add any configuration you would like as well. Please just submit a support ticket with your request, and I will see if it's possible.
Code:
--[[
SET LANGUAGE
Available languages: English: en - Danish: da - French: fr - Spanish: es - Russian: ru - German: de - Polish: pl - Turkish: tr
--]]
CH_ADVArrest.Config.Language = "en" -- Set the language of the script.
--[[
Configure Teams (IMPORTANT)
--]]
CH_ADVArrest.Config.AllowedTeams = { -- These are the names of the jobs that gets the new handcuffs & police baton.
["Civil Protection"] = true,
["Police Officer"] = true,
["Civil Protection Chief"] = true,
["Police Chief"] = true,
}
CH_ADVArrest.Config.MayorTeam = "Mayor" -- Job name of your mayor team.
-- Allow these usergroups to arrest players and give arrest stick
CH_ADVArrest.Config.GiveUsergroupsOnSpawn = true -- Should the usergroups below get the weapons on spawn/team change or not.
CH_ADVArrest.Config.AllowedUsergroups = {
["owner"] = true,
["superadmin"] = true,
["admin"] = true,
}
--[[
General Options
--]]
CH_ADVArrest.Config.StripOldWeapons = true -- Should the teams from the "CH_ADVArrest.Config.AllowedTeams" config be stripped off the old arrest/unarrest/stunstick weapons. [Default = true (RECOMMENDED)]
CH_ADVArrest.Config.NotificationTime = 5 -- Amount of seconds the notifications should display on screan for this script.
--[[
Arresting Options
--]]
CH_ADVArrest.Config.HandcuffTime = 5 -- Time it takes to handcuff the player.
CH_ADVArrest.Config.MinBail = 0 -- The minimum amount an officer can set the bail to. (Setting bail to 0 means no bail, unarrest when time runs out!
CH_ADVArrest.Config.MaxBail = 2500 -- The maximum amount an officer can set the bail to.
CH_ADVArrest.Config.MinTime = 60 -- The minimum amount an officer can set the arrest timer to (in seconds).
CH_ADVArrest.Config.MaxTime = 300 -- The maximum amount an officer can set the arrest timer to (in seconds).
CH_ADVArrest.Config.ArrestFreezeTimer = 10 -- Amount of seconds is frozen when you start arresting (LEFT CLICK)
CH_ADVArrest.Config.ArrestDistance = 10000 -- The distance between the officer and the player before he/she can arrest them. [Default = 10000] (RECOMMENDED)
--[[
Money Distribution (How money from bails are distributed)
1 = The person who arrested him/her (if available).
2 = The mayor (if there is one).
3 = Money disappears aka noone gets any money from bails.
--]]
CH_ADVArrest.Config.MoneyDistribution = 1
--[[
Handcuff Options
--]]
CH_ADVArrest.Config.WeaponSwitchedHandcuffed = "keys" -- What weapon should the target switch to when they get handcuffed?
CH_ADVArrest.Config.ArrestedWalkSpeed = 100 -- How fast the player can walk while an arrest is happening (after being handcuffed). [Default = 100]
CH_ADVArrest.Config.ArrestedRunSpeed = 100 -- How fast the player can run while an arrest is happening (after being handcuffed). [Default = 100]
--[[
Police Baton Options
--]]
CH_ADVArrest.Config.BatonDamage = 3 -- Amount of damamge given to the player when you hit them with the police baton.
CH_ADVArrest.Config.BatonHitDelay = 1 -- Amount of seconds delay on the police baton.
--[[
Jailer NPC
--]]
CH_ADVArrest.Config.EnableJailerNPC = false -- Should the jailer NPC be enabled? This DISABLES arresting through the handcuffs and forces police to bring the target to the NPC to arrest them.
CH_ADVArrest.Config.JailerNPCModel = "models/Police.mdl"
CH_ADVArrest.Config.NPCTextColor = Color( 255, 255, 255, 255 )
CH_ADVArrest.Config.NPCTextColorOutline = Color( 0, 0, 0, 255 )
--[[
Weapon Inspection
--]]
CH_ADVArrest.Config.InspectBlacklistWeapons = { -- These weapons will not show up during an inspection
["adv_arresting_handcuffs"] = true,
["adv_arresting_baton"] = true,
["weapon_dev_tool"] = true,
["itemstore_checker"] = true,
["itemstore_pickup"] = true,
["ch_bitminers_repair_wrench"] = true,
["ch_bitminers_tablet"] = true,
["defibrillator_advanced"] = true,
["med_kit_advanced"] = true,
["weapon_adv_keys"] = true,
["keys"] = true,
["weapon_doortool"] = true,
["weapon_advram"] = true,
["fire_axe"] = true,
["fire_extinguisher"] = true,
["traffic_confiscatenpc"] = true,
["traffic_tienpctruck"] = true,
["tow_attach"] = true,
["cocaine_repair_wrench"] = true,
["weapon_nuke"] = true,
}
Discord Server & Support
I own a Discord server for customers and anyone else who wish to join. I will occasionally provide exclusive offers and help with minor issues that might occur with my scripts. If you have a more serious problem, please create a conversation with me onsite.Conflicting addons is not to be said if I will support that or not. This is something I will decide upon confrontation about a conflicting addon. If you have found a conflicting addon, then feel free to create a conversation and I'll see if I can assist with solving the conflict.