GFX Development
  • gfx
    • About GFX
  • Product Docs
    • 📥GFX All in One Menu
      • 🛠️Setup
        • ⚙️Configuration
        • 📝Setting Permissions
      • 📒Informations
        • 💻For Developers
        • 👨‍💻Admin Commands
      • 🖇️Pages
        • 📄Profile
        • 📄Leaderboard
    • 🏎️GFX Racing
      • 🔨Installation
      • ⚙️Configuration
    • 📸GFX Deathcam
      • 🔨Installation
      • GFX Deathcam V1
        • ⚙️Configuration
      • GFX Deathcam V2
        • ⚙️Configuration
    • 📊GFX Leaderboard
      • 🔨Installation
      • ⚙️Configuration
    • ⚔️GFX Arena
      • 🔨Installation
      • ⚙️Configuration
    • 👨‍👨‍👦‍👦GFX Squad
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports
    • 🔬GFX Evidence
      • 🔨Installation
      • ⚙️Configuration
    • ❗GFX Notification
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports and Events
        • ⬆️Exports
        • ⬇️Events
    • 🚚GFX Delivery
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Tebexshop
      • 🔨Installation
      • ⚙️Configuration
      • ⚠️Tebex Settings
      • ⬆️Exports
    • 👁️‍🗨️GFX Interact
      • 🔨Installation
      • ⬆️Exports
    • 🫂GFX Crew
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🫂GFX Squad Remake
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX PVP Chat
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX HUD
      • 🔨Installation
      • ⚙️Configuration
    • 🔫GFX Attachment
      • 🔨Installation
      • ⚙️Configuration
    • 💀GFX Deathlog
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX PVP Shop
      • 🔨Installation
      • ⚙️Configuration
    • 🧱GFX Crafting
      • 🔨Installation
      • ⚙️Configuration
    • 🚍GFX Bus Job
      • 🔨Installation
      • ⚙️Configuration
    • 🐔GFX Chicken Farm
      • 🔨Installation
      • ⚙️Configuration
    • 🎁GFX Giveaway
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Pawnshop
      • 🔨Installation
      • ⚙️Configuration
    • 🪵GFX Lumberjack
      • 🔨Installation
      • ⚙️Configuration
    • 🚙GFX Secondhand Vehicle
      • 🔨Installation
      • ⚙️Configuration
    • 🤖GFX Autopilot
      • 🔨Installation
      • ⚙️Configuration
    • 🗳️GFX Vote
      • 🔨Installation
      • ⚙️Configuration
    • 🟢GFX Safezone
      • 🔨Installation
      • ⚙️Configuration
    • 🎅GFX Christmastruck
      • 🔨Installation
      • ⚙️Configuration
    • 🚔GFX Handcuff
      • 🔨Installation
      • ⚙️Configuration
    • 🚚GFX Trucker Job
      • 🔨Installation
      • ⚙️Configuration
    • 🌱GFX Weed
      • 🔨Installation
      • ⚙️Configuration
    • 🔉GFX DUI Radio
      • 🔨Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  • How to Use
  • For Developers
  1. Product Docs
  2. GFX Handcuff

Configuration

Check the instructions below.

All configuration options are located in config.lua.

Framework

Field
Description
Example Value

Framework

Server framework. Options: new-qb, esx, old-qb

"new-qb"

Police Job Names

Field
Description
Example Value

PoliceJobNames

Jobs allowed to use handcuffs.

["police", "sheriff"]

Commands and Timers

Field
Description
Example Value

Command

Command to open the electronic menu.

"emenu"

UpdateTime

Interval for updating electronic cuffs (seconds).

1

Minigame

Enables a minigame for cuffing.

false

Menu Dialogs

Define actions available in the electronic menu:

Config.MenuDialogs = {
    title = "Cuff Type",
    items = {
        [1] = {
            header = "Soft Cuff / Uncuff",
            description = "Soft cuff is a soft cuff",
            callback = "gfx-cuffsystem:client:SoftCuff",
        },
        [2] = {
            header = "Hard Cuff / Uncuff",
            description = "Hard cuff is a hard cuff",
            callback = "gfx-cuffsystem:client:Hardcuff", 
        },
        [3] = {
            header = "Drag / Undrag",
            description = "Control the person you cuffed",
            callback = "gfx-cuffsystem:client:DragUndrag",
        },
        [4] = {
            header = "Put / Out of Vehicle",
            description = "Control the person you cuffed",
            callback = "gfx-cuffsystem:client:PutOutOfVehicle", 
        },
    }
}

Items and Animations

Item
Description
Example Values

handcuffs

Configures soft and hard cuffing.

Animations for player and target.

electroniccuff

Configures electronic cuffs.

Animations for player and target.

headbag

Reserved for headbagging.

Empty by default.

Notifications

Customize notifications for various actions:

Config.Notifications = {
    ["cuffedabt"] = "Cuffed about ",
    ["shock"] = "Shock",
    ["uncuff"] = "Uncuff",
    ["gps"] = "GPS",
    ["electroniccuffs"] = "Electronic Cuffs"
}

How to Use

Basic Features

  1. Open the Menu Use the /emenu command to access the electronic menu.

  2. Choose Cuff Type

    • Soft Cuff: Allows limited movement.

    • Hard Cuff: Restricts all actions.

  3. Advanced Actions

    • Drag or undrag a player.

    • Place or remove a player from a vehicle.

  4. Electronic Cuffs

    • Track players using GPS.

    • Apply shocks if necessary.


For Developers

Exports

Client-Side

  • Use the provided callback functions for custom integrations:

    • gfx-cuffsystem:client:SoftCuff

    • gfx-cuffsystem:client:Hardcuff

    • gfx-cuffsystem:client:DragUndrag

    • gfx-cuffsystem:client:PutOutOfVehicle

Server-Side

  • Integrate with your framework for logging or additional actions.

PreviousInstallationNextGFX Trucker Job

Last updated 5 months ago

🚔
⚙️