Configuring this resource

Setup instructions

  1. Drag and drop the resource into your server's resources/ folder.

  2. Add ensure [MirrorPark - Custody to your server.cfg

  3. Configure Shared/Config.lua as needed.

  4. Restart your server or the resource.

⚙️ Configuration

All customization can be done inside the Config.lua file located at: Shared/Config.lua

Below is an overview of what each option does:


🚪 Gate Settings

  • GateSpeed: How fast the gate moves. Lower = slower.

  • GateTimeOpen: How long the gate stays open (in milliseconds).

  • GateCommand: Enables an optional command (e.g., /custodygate) to manually open/close the gate.


🎯 Targeting Options

  • GateTargetting.Enabled: Enable or disable target-based interaction.

  • GateTargetting.Framework: Choose your targeting system. Supported options: "ox_target", "qtarget", "qbtarget"


🔐 Cell Door Controls

  • DoorCommands.Enabled: Enable command-based control of doors/hatches.

  • DoorCommand: Command to toggle cell doors (e.g., /celldoor)

  • HatchCommand: Command to toggle cell hatches (e.g., /cellhatch)


🔒 Access Restriction

  • RestrictionCheck: A function where you can insert your own logic to control who can use the gate or door systems.

    Example:

    Config.RestrictionCheck = function()
        return QBCore.Functions.GetPlayerData().job.name == "police"
    end

Last updated