ขั้นตอนติดตั้ง#
- สำรอง Config และฐานข้อมูลเดิม ก่อนเปลี่ยน Version
- หยุด
ks_policeและหากเป็น Full Package ให้ลบโฟลเดอร์เดิมก่อนวางชุดใหม่ - เซิร์ฟเวอร์ที่ติดตั้งใหม่ให้ Import
sql/install.sql - ตั้งค่า
config/shared/00_general.lua,01_features.lua,02_duty.luaและ05_cases_jail.lua - ตั้ง Integration ใน
config/shared/10_integrations.lua - หาก API ของ resource ภายนอกไม่ตรงค่า Default ให้แก้ Adapter ใน
config/functions/ - เพิ่ม
ensure ks_policeในserver.cfg - เปิด Server Console และตรวจข้อความ
[ks_police] Config validation:
server.cfg
ensure oxmysql
ensure es_extended
ensure ks_policeชื่อ Resource
แนะนำให้ใช้ชื่อ ks_police ตาม Package เพื่อให้ Integrations และตัวอย่าง Exports ตรงกับเอกสาร
ไฟล์ที่ห้ามลบ#
web/dist/legacy/ยังเป็น Runtime Dependencyinternal/runtime.luaเป็น Compatibility Layer ไม่ใช่ Customer Config- ไฟล์
nexus/และnexus_protected/ใน Protected Package เป็นส่วนของ Runtime Protection
Police Bank#
ยอดเงินหน่วยงานใช้ตาราง ks_police_bank ภายใน resource เป็น Source of Truth และไม่จำเป็นต้องติดตั้งระบบธนาคารหน่วยงานภายนอก