๐งGeneral Configuration
This guide covers the essential configuration settings located at the top of the config.lua
file. These options control how the prison system behavesโfrom framework integration to officer requirements and sentence reduction intervals.
๐ Language
Config.Lan = 'en'
Sets the language used in notifications and menus. Available options:
'en'
โ English'es'
โ Spanish'de'
โ German'fr'
โ French
๐ Notifications
Config.Notifications = "ox_lib"
Controls which system is used for showing notifications to players. Options:
"ox_lib"
โ Uses ox_lib notification system"qb-core"
โ Uses QBCore's native notification system
๐ Inventory System
Config.Inventory = "ox_inventory"
Sets which inventory system is being used. Supported options:
"ox_inventory"
"qb-inventory"
"ps-inventory"
"qs-inventory"
Make sure this matches your serverโs inventory script.
๐ฏ Target System
Config.Target = "ox_target"
Specifies which target system is used for ped/object interactions. Options:
"ox_target"
"qb-target"
โณ Progress Bar
Config.ProgressBar = "ox_lib"
Sets which progress bar system is used. Options:
"ox_lib"
"qb-core"
๐จ Dispatch System
Config.Dispatch = "none"
Used to determine what dispatch system (if any) alerts police when needed. Options:
"ps-dispatch"
"cd_dispatch"
"qs-dispatch"
"tk_dispatch"
"rcore_dispatch"
"none"
โ disables dispatch integration
๐ผ๏ธ Inventory Image Path
Config.InventoryImagePath = "ox_inventory/web/images"
Specifies the path where your item icons are stored. Update this if you're using a different inventory system like qb or qs.
๐งพ Webhooks
Config.WebHooks = false
Config.WebHookURL = "PLACE_YOUR_WEBHOOK_HERE"
Set
WebHooks
totrue
to enable Discord logging.Provide a valid
WebHookURL
to receive jail, escape, or item confiscation logs.
๐ฐ Fine System
Config.FineSystem = true
If enabled, fines will be automatically issued when jailing a player (requires fine amount to be passed in jail event).
๐ฎ Officer Restrictions
These three settings control if a nearby officer is required for key actions:
Config.RequireOfficerNearbyToJail = true
Config.RequireOfficerNearbyToRelease = true
Config.RequireOfficerNearbyToEditSentence = true
๐ฎ Allowed Jobs
Config.RequiredJobs = { "police" }
List of job names allowed to handle jail-related actions (jailing, editing, releasing).
โฑ๏ธ Sentence Timing
Config.PrisonTickInterval = 60
Config.SentenceReduction = 1
PrisonTickInterval
= how often sentence time is reduced (in seconds)SentenceReduction
= how many minutes are subtracted per tick
Last updated