🔧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 to true 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