With ox_target, qb-target or tgiann-target every action is on the other player, the vehicle trunk or the placed prop. Without a target resource, players press the interaction key (Config.Keybinds.interact, default G). Restraint items can also be used from the inventory and act on the closest player.
Restraints
| Handcuffs | Zip ties | |
|---|---|---|
| Who can use them | police, sheriff (on duty) | everybody with the item |
| Item used up | no | yes |
| Removed by | the same jobs or anyone with handcuff_key |
knife, switchblade, dagger, machete |
| Break free | no | yes |
While restrained a player cannot run, jump, fight, use weapons, enter or leave vehicles or open the inventory. The state is published as jcks:restrained, as isCuffed, and as ishandcuffed metadata on QBCore and Qbox. Breaking free is a server checked minigame (struggleGame), then the server rolls struggleChance.
A standing target can only be restrained from behind, with the hands up (Config.Keybinds.handsUp, default X) and without a weapon in the hands. A target that is down or stunned by a taser can always be restrained.
| Key | Type | Default | What it changes |
|---|---|---|---|
Config.Restraints.enabled |
boolean | true |
Restraints |
distance |
number | 2.0 |
Metres between both players |
duration |
number | 2800 |
ms of the cuffing animation |
requireDuty |
boolean | true |
Job limited restraints only on duty |
struggleCooldown |
number | 90 |
Seconds between break free attempts |
struggleGame |
string | 'timing' |
Minigame type or 'custom:<id>' from Minigames. 'skill' = plain key skill check decided on the client |
struggleGameDifficulty |
string | 'hard' |
easy, medium or hard for struggleGame |
struggleDifficulty |
table | { 'easy', 'medium', 'medium', 'hard' } |
Only with struggleGame = 'skill': skill check steps, one entry is one key press |
struggleChance |
number | 35 |
% a passed minigame or check breaks the restraint, rolled by the server |
struggleSkillChance |
number | 15 |
% used instead of struggleChance with struggleGame = 'skill' (0 to 100) |
struggleAttempts |
number | 3 |
Attempts per restraint, 0 = unlimited. Restraining again resets it |
requireBehind |
boolean | true |
A standing target can only be restrained from behind |
behindAngle |
number | 70 |
Degrees from straight behind with requireBehind (20 to 120) |
requireHandsUp |
boolean | true |
A standing target must have the hands up |
handsUpAnims |
table | three hands up animations from missminuteman_1ig_2 and random@mugging3 |
'dictionary:animation' that count as hands up, add the one of your hands up script |
allowOnArmed |
boolean | false |
false = a target holding a weapon cannot be restrained |
types |
table | handcuffs, zipties |
Restraint types with item, consume, jobs, removeWith, returnItem, struggle |
The struggle options live only in this file, the server reads the same values. Server only (settings/server/config.lua): Config.Restraints.keepOnReconnect = true (a player who leaves while restrained is restrained again on rejoin, until a restart).
Add your own type (rope, cable ties) by copying an entry in types. Items in removeWith must exist.
Player actions
Escort, put in vehicle, take out of vehicle and search work on players who are restrained or down.
| Key | Type | Default | What it changes |
|---|---|---|---|
Config.PlayerActions.escort |
boolean | true |
Escort |
vehicle |
boolean | true |
Put in and take out of vehicles |
search |
boolean | true |
Open the player's inventory |
jobs |
table or false | false |
Jobs that may use them, false = everybody |
requireDuty |
boolean | false |
With jobs set, only on duty |
distance |
number | 3.0 |
Metres to escort or search |
vehicleDistance |
number | 7.0 |
Metres to the vehicle |
Server only: escortAfterTakeOut = true. Down detection can be changed in ServerEditable.IsDown and ClientEditable.IsDown.
Trunk props
Access is decided by the vehicle model, so it works with any garage resource. Go on duty, stand behind a listed vehicle, open the trunk, pick a prop, place it with the mouse wheel and E. Placed props can be moved or picked up by every employee of the same job and by admins. Spike strips burst the tyres of every vehicle without bulletproof tyres.
| Key | Type | Default | What it changes |
|---|---|---|---|
Config.TrunkProps.enabled |
boolean | true |
Trunk props |
requireDuty |
boolean | true |
Only on duty |
catalog |
table | cone, cone_large, barrier, barrier_led, road_sign, spikes, light, tent, medbag, toolbox | Every prop with label, model, icon, limit, freeze, spikes |
jobs |
table | police, ambulance, mechanic | Per job minGrade, vehicles (spawn names) and props |
Server only: maxPerPlayer = 20, lifetime = 0 (minutes, 0 = never), removeOnDrop = true, maxVehicleDistance = 60.0. /clearprops [radius] removes props around an admin (30 m by default).
Config.TrunkProps.jobs = {
police = {
minGrade = 0,
vehicles = { 'police', 'police2', 'police3', 'police4', 'sheriff', 'fbi' },
props = { 'cone', 'barrier', 'spikes', 'light' },
},
}