ขั้นตอนติดตั้ง#
- สำรอง Config และฐานข้อมูลเดิม ก่อนเปลี่ยน Version
- หยุด
nX_policeและหากเป็น Full Package ให้ลบโฟลเดอร์เดิมก่อนวางชุดใหม่ - เซิร์ฟเวอร์ที่ติดตั้งใหม่ให้ Import
sql/install.sql - เริ่มที่
config/customer/00_setup.luaแล้วตั้ง Job / Admin Groups / Features - ตั้งข้อมูลหลักที่
config/data/ranks.lua,charges.luaและjail_locations.lua - ถ้าใช้ Integration ที่ต่างจากค่าเริ่มต้น ค่อยแก้
config/customer/08_integrations.luaและ Adapter ในconfig/functions/ - ตั้ง Discord Webhook เป็น Server ConVar ใน
server.cfgไม่ใส่ URL ใน Lua - เพิ่ม
ensure nX_policeในserver.cfg - เปิด Server Console และตรวจ Config validation / error ก่อนให้ผู้เล่นเข้าใช้งาน
server.cfg
ensure oxmysql
ensure es_extended
ensure nX_policeไฟล์ที่ควรเริ่มแก้
เซิร์ฟเวอร์ทั่วไปเริ่มจาก config/customer/00_setup.lua และไฟล์ใน config/data/ ก่อน ส่วน technical/security config อยู่ Internal และไม่ต้องแก้
โครงสร้าง Customer Config#
text
config/customer/ = gameplay / policy
config/data/ = ranks / charges / jail / shop / rewards / doors
config/locales/ = ข้อความภาษา
config/server/ = server-only config
config/functions/ = adapter ภายนอก
internal/ = runtime/security/performance (ไม่ต้องแก้)Police Bank#
ยอดเงินหน่วยงานใช้ตาราง nX_police_bank ภายใน resource เป็น Source of Truth และไม่จำเป็นต้องติดตั้งระบบธนาคารหน่วยงานภายนอก