Studios
Police Trainingpolice-2.jpg

Configuration

Police TrainingQBCore · Qbox · ESX
PAGE 03 OF 08  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

🔧 Configuration Guide#

The Police Training script offers extensive customisation options through two main configuration files. This guide will walk you through each configuration option to help you set up the perfect job experience for your server.

📁 Configuration Files#

The configuration is split across multiple lua files inside of the shared folder:

  • config-main.lua: Core gameplay settings, default values, and mechanics
  • config-client.lua: Provides edit access to specific client sided functions, especially for changing notifications and other basic functions.
  • config-server.lua: Provides edit access to specific server sided functions.

Configuration and integration files#

shared/config-main.lua contains settings, map selection, spawn points and small interiors. shared/config-client.lua and shared/config-server.lua hold editable framework, inventory, weather and other integration functions. There is no config-locations.lua in this package.

shared/config-main.lua defaults#

Setting Default / editing guidance
Config.debugPoly false
Config.Abstraction true
Config.vSync true
Config.policeRole Table; fields and examples are in the supplied configuration file.
Config.policeGrade 3
Config.discordRoleCheck false
Config.discordRolesToCheck Table; fields and examples are in the supplied configuration file.
Config.hostileHostageChance 40
Config.orgBucket 0
Config.deadHostageResponse 'mask'
Config.hostageKilledMask_Male 97
Config.hostageKilledMaskTexture_Male 0
Config.hostageKilledMask_Female 97
Config.hostageKilledMaskTexture_Female 0
Config.defaultHealth 100
Config.defaultArmor 0
Config.defaultAccuracy 80
Config.SoldierModels Table; fields and examples are in the supplied configuration file.
Config.defaultWeapon 'weapon_carbinerifle'
Config.hostileHostageWeapon 'WEAPON_pistol'
Config.useRadio false
Config.defaultRadio 997
Config.leaveDistance 30
Config.leaveCommand 'leavecourse'
Config.notifyTitle 'Entry Point'
Config.menuTitle 'Entry Point Course'
Config.notifyAnimation 'beatFade'
Config.notifyIcon 'fa-solid fa-person-rifle'
Config.Weapons Table; fields and examples are in the supplied configuration file.
Config.weather Table; fields and examples are in the supplied configuration file.
Config.time Table; fields and examples are in the supplied configuration file.
Config.mapSelection Table; fields and examples are in the supplied configuration file.
Config.startPed Table; fields and examples are in the supplied configuration file.
Config.SpawnPoints Table; fields and examples are in the supplied configuration file.
Config.smallInteriors Table; fields and examples are in the supplied configuration file.