Configuring this resource
Setup instructions
Drag and drop the resource into your server's
resources/folder.Add
ensure [MirrorPark-Custody]to yourserver.cfgConfigure
Shared/Config.luaas needed.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:
QB Core compatible code
Last updated