Config ถูกแบ่งตาม subsystem เพื่อให้แก้ง่ายและลดการแตะ Core โดยตรง

00_general.lua — General#

lua
Config.General = {
    Debug = false,
    Locale = 'th',
    Jobs = { OnDuty = 'police', OffDuty = 'offpolice' },
    AdminGroups = { admin = true, superadmin = true, dev = true }
}

AdminGroups ใช้เป็นชุดกลางของสิทธิ์ Admin ใน Search, Management, Economy, Reports และ Police+ Editor

01_features.lua — Feature Switches#

lua
Config.Features.Cases = true
Config.Features.Jail = true
Config.Features.Statistics = true
Config.Features.EquipmentManagement = true

02_duty.lua — Duty#

lua
Config.Duty.Points = {
    { label = 'Mission Row', coords = vector3(441.10, -981.90, 30.69) },
    { label = 'Sandy Shores', coords = vector3(1853.20, 3689.51, 34.27) }
}

03_police_actions.lua — Police Actions#

lua
Config.General.Distances = {
    PlayerInteraction = 3.0,
    Search = 3.0,
    NearbyList = 25.0,
    DutyToggle = 3.0
}

04_dispatch_squad.lua — Dispatch / Squad#

เพิ่มประเภทแจ้งเหตุ Code, Label, สี และ Blip ได้จาก Config.Dispatch.Types ดูตัวอย่างในหน้า Dispatch API

05_cases_jail.lua — Cases / Jail#

รวม Limits, Charge Categories, Charges, Auto Evidence Charge, Jail Locations และ Jail Escape ดูรายละเอียดที่ Cases & Jail

06_economy.lua — Economy#

Police Bank, Welfare, Paycheck, Safe, Agency Shop และ Online Rewards

07_management.lua — Management#

Ranks, Rank Permissions, Personnel, Equipment Management และ Mailbox

08_services.lua — Services#

Admin / Commander / Dev Report, Department Announcement, Playpass และ Statistics

09_ui.lua — UI / Notification#

Theme, Scale, Dispatch sound และ Notification ภายใน KS Police

10_integrations.lua — Integrations#

เก็บชื่อ Resource / Export / Event เท่านั้น ส่วนการแปลง signature ให้อยู่ใน config/functions/

11_doorlock.lua — Door Lock#

ตั้งระบบ Door Lock และประตูถาวร ส่วน Editor logic และ Performance implementation ภายในถูกล็อกไว้ใน Runtime

91_security.lua — Security#

Case Hard Limits, Dispatch allow-list, Routing Bucket validation, Squad telemetry validation, Heli spotlight anti-spam และ Report rate limit

Shared Config ไม่ใช่ Secret
ไฟล์ config/shared/* ถูกโหลดฝั่ง Client ด้วย ห้ามเก็บ Webhook URL, Token หรือ Secret ใด ๆ ใน Shared Config โดย Discord Webhook ต้องเก็บใน config/server/discord_logs.lua เท่านั้น