FiveM Enhanced QBCore ใช้ได้ไหม
FiveM Enhanced สามารถนำ QBCore Server มาทดสอบและ Migration ได้ โดยไม่จำเป็นต้องสร้าง Roleplay Server ใหม่ทั้งหมด เพราะ qb-core เป็น Framework ที่พัฒนาด้วย Lua บน FiveM และ Cfx.re ออกแบบ FiveM for GTAV Enhanced ให้รักษา Backward Compatibility กับ Existing Lua, JavaScript และ C# Resources จำนวนมาก
อย่างไรก็ตาม ยังไม่ควรตีความว่า “QBCore รองรับ Enhanced แล้วทุก Resource 100%” เนื่องจาก QBCore Server จริงไม่ได้มีเพียง qb-core แต่ประกอบด้วย Resource จำนวนมาก เช่น
qb-inventory
qb-target
qb-multicharacter
qb-spawn
qb-phone
qb-policejob
qb-garages
qb-vehicleshop
Voice
Housing
Banking
Custom Scripts
Map/MLO
Vehicles
Clothing
Enhanced ยังมี Breaking Changes ด้าน OneSync, Networking, State Bags, KVP, Voice, Asset และระบบอื่นที่ Third-party QBCore Resource บางตัวอาจใช้งาน
ดังนั้นบทความนี้จาก comsiam จะเน้นวิธีตรวจว่า QBCore Stack เดิมใช้กับ FiveM Enhanced ได้จริงแค่ไหน และควร Migration อย่างไรเพื่อไม่ให้ Character, เงิน, Inventory หรือรถของผู้เล่นเสียหาย
① FiveM Enhanced ใช้ QBCore ได้ไหม?
ใช้ได้ในระดับ Framework Platform
QBCore เป็น FiveM RP Framework ที่ใช้ Lua เป็นหลัก
ขณะที่ FiveM Enhanced ยังคงรองรับ Lua และมีเป้าหมายรักษา Compatibility กับ Resource เดิม
ดังนั้นไม่มีข้อกำหนดว่าถ้าเปลี่ยนไป Enhanced แล้วต้องเลิก QBCore
สามารถสร้างหรือ Migration QBCore Server บน Cfx Server Enhanced ได้
② มี QBCore Enhanced Framework แยกหรือไม่?
ไม่จำเป็นต้องหา Framework ที่ชื่อ
QBCore Enhanced
โดยเฉพาะ
สิ่งสำคัญกว่าคือใช้
qb-coreVersion ปัจจุบันDependency ปัจจุบัน
Resource Version ปัจจุบัน
Cfx Server Enhanced ที่รองรับ
Resource ที่ผ่าน Compatibility Test
แล้วตรวจ Third-party Resource เป็นรายตัว
③ qb-core ยังมีการพัฒนาอยู่หรือไม่?
Official QBCore Framework Repository ยังคงมี qb-core และ Resource ใน Ecosystem จำนวนมาก เช่น
qb-inventory
qb-target
qb-phone
qb-policejob
qb-multicharacter
qb-vehicleshop
จึงไม่ใช่ Framework ที่ต้องทิ้งเพียงเพราะ FiveM Enhanced เปิดตัว
แต่ Server Pack ที่ใช้ QBCore รุ่นเก่ามากไม่ควรถูกนำมาเป็นตัวแทนของ QBCore รุ่นปัจจุบัน
④ QBCore Server Legacy ย้ายมา Enhanced ได้ไหม?
ได้ แต่ควร Migration เป็น Test Environment ก่อน
โครงสร้างที่ปลอดภัยคือ
QBCore Legacy Production
↓
Backup
↓
Cfx Server Enhanced Test
↓
Database Clone
↓
qb-core
↓
Dependencies
↓
QBCore Resources
↓
Third-party Resources
↓
Assets
↓
Load Test
↓
Production
ไม่ควรติดตั้ง Enhanced ทับ Production Server เดิมทันที
⑤ ต้อง Reset QBCore Server หรือไม่?
ไม่จำเป็นเพียงเพราะย้าย FiveM Enhanced
ข้อมูล Roleplay ของ QBCore จำนวนมากอยู่ใน Database
เช่น
Character
Citizen ID
Money
Job
Gang
Metadata
Vehicle
Inventory ตามระบบที่ใช้
ถ้า Database และ Resource Compatible ข้อมูลเหล่านี้สามารถ Migration ต่อได้
⑥ Character เดิมจะหายไหม?
ไม่ควรหายหาก Database Migration ถูกต้อง
สิ่งที่ควรทำคือ
Backup Database
Clone Database
ต่อ Enhanced Test เข้ากับ Clone
Login Character เก่า
ตรวจข้อมูล
Restart
Login ใหม่
อย่าใช้ Production Database เป็นสนามทดลองครั้งแรก
⑦ Citizen ID ต้องสร้างใหม่ไหม?
โดยปกติไม่จำเป็น
Citizen ID เป็นข้อมูลของ QBCore Framework ไม่ได้ถูก Reset โดย FiveM Enhanced โดยอัตโนมัติ
แต่ควรตรวจ Resource Third-party ที่ใช้ Citizen ID เป็น Foreign Key เช่น
Vehicles
Phone
Housing
Banking
ว่าทำงานต่อถูกต้อง
⑧ เงินผู้เล่นจะหายไหม?
ไม่ควร
ข้อมูลเงินเป็นส่วนหนึ่งของ QBCore Player Data/Database ตามระบบที่ Server ใช้
Enhanced ไม่ได้สั่ง Wipe Economy
หากเงินหายหลัง Migration ให้ตรวจ
Database
Player Load
Save Function
Resource Version
แทนการสรุปว่า Enhanced ล้างข้อมูล
⑨ Job และ Gang เดิมใช้ต่อได้ไหม?
โดยหลักสามารถ Migration ต่อได้
ควรตรวจข้อมูล เช่น
Job Name
Grade
Duty
Gang
Permission
รวมถึง Resource ที่ใช้ Job/Gang เหล่านั้น
เช่น
Police
EMS
Mechanic
Gang System
⑩ Metadata ต้องทดสอบไหม?
ต้อง
QBCore ใช้ Metadata สำหรับข้อมูลผู้เล่นหลายประเภทตาม Resource ที่ติดตั้ง
Resource Third-party สามารถเพิ่ม Metadata ของตัวเองได้
หลัง Migration ควรตรวจว่าข้อมูล
Load ถูก
Update ถูก
Save ถูก
และไม่ Reset หลัง Reconnect
⑪ qb-core ควรติดตั้งใหม่หรือ Copy ตัวเดิม?
ถ้า Server เดิมใช้ Version ปัจจุบันและมี Custom Modification จำนวนมาก สามารถนำ Version เดิมมาทดสอบก่อนเพื่อลดจำนวนตัวแปร
แต่ถ้า qb-core เก่ามาก ควรเปรียบเทียบกับ Version ปัจจุบันก่อน
อย่า Update Framework ครั้งใหญ่พร้อมกับ Enhanced Migration โดยไม่มีเหตุผล
⑫ ทำไมไม่ควร Update ทุกอย่างพร้อมกัน?
สมมติคุณเปลี่ยนพร้อมกัน
FiveM Enhanced
qb-core
qb-inventory
Phone
Database
Garage
Voice
แล้ว Character เข้าไม่ได้
จะไม่รู้ว่าปัญหาเกิดจากตัวไหน
Migration ที่ดีควรเปลี่ยนทีละ Layer
⑬ Database Driver ใช้อะไร?
ขึ้นอยู่กับ QBCore Stack และ Recipe ที่ Server ใช้
Server จำนวนมากอาจใช้ Database Resource เช่น
oxmysql
Driver อื่นที่ Resource รองรับ
สิ่งสำคัญคือใช้ Version ที่ยังได้รับการดูแลและตรงกับ Resource
ไม่ควรยึด Server Pack เก่าเป็นมาตรฐาน
⑭ Database Clone สำคัญแค่ไหน?
สำคัญมาก
สมมติ Production Database คือ
qbcore_prod
สร้าง
qbcore_enhanced_test
จาก Backup
แล้วให้ Enhanced Test Server ใช้ Database ตัวนี้
หาก Resource ใหม่แก้ Schema ผิด Production จะไม่เสียหาย
⑮ Player Load ต้องทดสอบอะไร?
ตรวจตั้งแต่
Connect
Character Select
Player Loaded
Position
Money
Job
Gang
Metadata
Inventory
Logout
Reconnect
ถ้าผ่านจึงค่อยทดสอบ Resource ขั้นต่อไป
⑯ qb-multicharacter ใช้ได้ไหม?
เป็น Official QBCore Resource และเป็นหนึ่งในระบบที่ควรนำมาทดสอบบน Enhanced
ต้องตรวจ
Character List
Select
Create
Delete
Spawn
Logout
Reconnect
โดยเฉพาะ Routing/Instance ที่ใช้ระหว่าง Character Selection
⑰ qb-spawn ต้องทดสอบหรือไม่?
ต้อง
ระบบ Spawn เชื่อมกับ
Character
Last Location
Apartments/Housing
Player State
ควรทดสอบทั้ง
New Character
Existing Character
Last Location
Spawn Location
ไม่ใช่เพียง Login Admin Account
⑱ qb-inventory ใช้กับ Enhanced ได้ไหม?
qb-inventory เป็น Official QBCore Resource ที่พัฒนาด้วย Lua และสามารถนำมาทดสอบบน Enhanced ได้
แต่ Inventory เป็นระบบ Critical จึงไม่ควรถือว่าผ่านเพียงเพราะ Resource Start
ต้อง Functional Test อย่างละเอียด
⑲ qb-inventory ต้องทดสอบอะไร?
อย่างน้อย
Inventory Load
Use Item
Give Item
Drop
Hotbar
Stash
Trunk
Glovebox
Weight
Metadata
Save
Reconnect
รวมถึง Restart Server แล้วตรวจข้อมูล
⑳ Item เดิมต้องสร้างใหม่ไหม?
ไม่จำเป็น
Custom Item Definition ของ QBCore สามารถนำมา Migration ได้หาก Resource รอบข้างยัง Compatible
แต่ควรตรวจ
Item Name
Label
Weight
Image
Unique
Usable
Metadata
โดยเฉพาะ Item จาก Third-party Script
㉑ Inventory หายหลัง Migration เกิดจากอะไร?
สาเหตุอาจเป็น
Database ผิด
Inventory Version ไม่ตรง
Schema แตกต่าง
Player Identifier/Citizen ID ผิด
Resource Start Order
Custom Migration ผิด
ไม่ควรสร้าง Item ใหม่ทั้งหมดทันที
ให้ตรวจ Database ก่อน
㉒ qb-target ใช้ได้ไหม?
qb-target เป็น Official QBCore Resource ที่ใช้สร้าง Interaction กับ
Entity
Model
Ped
Vehicle
Zone
สามารถนำมาทดสอบ Enhanced ได้
แต่ระบบที่เกี่ยวข้องกับ Entity/Networking ควรได้รับ Multiplayer Test มากกว่าปกติ
㉓ qb-target ต้องทดสอบอะไร?
ตรวจ
Ped Target
Vehicle Target
Object Target
Zone
Job Restriction
Item Restriction
Distance
Remove Target
และทดสอบกับ Entity ที่ผู้เล่นหลายคนเห็นพร้อมกัน
㉔ Enhanced เปลี่ยน Entity Synchronization หรือไม่?
เปลี่ยน
Enhanced ไม่ใช้ P2P Synchronization แบบ Legacy และเปลี่ยนเป็น Client-server Model
ดังนั้น Custom QBCore Resource ที่เขียน Workaround เรื่อง Entity Ownership แบบเก่าควรถูก Audit
Core Resource อาจปกติ แต่ Third-party Resource อาจพึ่ง Behavior เดิม
㉕ OneSync non-big ถูกถอดแล้วมีผลอย่างไร?
Enhanced ไม่มี OneSync non-big Mode
OneSync Big Behavior เป็นพื้นฐาน
ความแตกต่างสำคัญหนึ่งคือ Player Event Scoping
จึงควรตรวจ QBCore Resource เช่น
Scoreboard
Police Blips
Admin Player List
Player Tracking
เป็นพิเศษ
㉖ qb-scoreboard ต้องทดสอบหรือไม่?
ควร
Official QBCore มี qb-scoreboard
แต่ Resource หรือ Fork ที่ Server ใช้อาจแตกต่างจาก Version Official มาก
ทดสอบผู้เล่น
อยู่ใกล้กัน
อยู่ไกลกัน
คนละ Routing Bucket
ดูว่าข้อมูลยังถูกต้อง
㉗ Police Tracking ต้องระวังอะไร?
Custom Police Resource มักต้องแสดงตำแหน่งตำรวจหลายคน
หาก Logic พึ่ง Player Scope แบบเดิม อาจเกิด
Blip หาย
Update ไม่ครบ
Player ไม่แสดง
ต้อง Multiplayer Test ในระยะไกลจริง
㉘ qb-policejob ใช้ได้ไหม?
เป็น Official QBCore Resource และ Lua เป็นหลัก จึงสามารถนำมาทดสอบ Enhanced ได้
แต่ Police System มี Dependency หลายส่วน
เช่น
Inventory
Target
Evidence
Job
Vehicle
Jail
Voice
จึงต้อง Integration Test
㉙ Police ควรทดสอบอะไร?
อย่างน้อย
Duty
Cuff
Search
Evidence
Jail
Fine
Vehicle
Armory
Garage
Blips
Radio
และตรวจ Player หลายคนพร้อมกัน
㉚ EMS Resource ล่ะ?
ใช้หลักเดียวกัน
ทดสอบ
Duty
Revive
Death State
Bed
Hospital
Billing
Inventory
Vehicle
Death/Revive Resource มักเชื่อม State หลายส่วน จึงควรทดสอบ Reconnect ขณะตายด้วย
㉛ qb-phone ใช้ได้ไหม?
Official QBCore มี qb-phone ซึ่งมีทั้งระบบ QBCore Integration และ Web/NUI Components
สามารถนำมาทดสอบ Enhanced ได้
แต่ Phone เป็น Resource ที่มี Dependency สูง จึงควรถือเป็นระบบ Critical
㉜ qb-phone ต้องทดสอบอะไร?
ตรวจ
Contacts
Messages
Calls
Banking Integration
GPS
Job Apps
Notifications
NUI
Database
หาก Server เปลี่ยน Voice Stack ต้องทดสอบ Phone Calls เพิ่มเป็นพิเศษ
㉝ Enhanced Voice มีผลกับ QBCore ไหม?
มีผลกับ Voice Resource ไม่ใช่ qb-core โดยตรง
FiveM Enhanced ใช้ Voice Implementation ใหม่ และ Mumble ถูกจัดเป็น Deprecated
Server QBCore ที่ใช้
Proximity Voice
Radio
Phone Calls
จึงต้องตรวจ Voice Stack ก่อน Production
㉞ pma-voice ต้องทดสอบหรือไม่?
ควรใช้ Version ที่ผู้พัฒนาระบุรองรับ Environment ปัจจุบันและทดสอบ
Proximity
Radio
Call
Mute
Voice Range
Reconnect
Routing Bucket
อย่าถือว่า QBCore Core ผ่านแล้ว Voice จะผ่านตาม
㉟ qb-radio หรือ Custom Radio ต้องทดสอบไหม?
ต้อง
Radio สามารถเชื่อม
Job
Voice Channel
Inventory Item
UI
จึงต้องทดสอบ Police/EMS หลายคนจริง
โดยเฉพาะเปลี่ยน Channel และ Reconnect
㊱ qb-houses หรือ Housing Resource ต้องตรวจอะไร?
ตรวจ
House Ownership
Key
Door
Stash
Furniture
Garage
Routing
Database
หาก Resource ใช้ Routing Bucket หรือ Entity จำนวนมาก ต้องตรวจ Synchronization เพิ่ม
㊲ Housing Data จะหายไหม?
ไม่ควรหายหาก Database Migration ถูกต้อง
แต่ Housing Resource Third-party อาจใช้
SQL
KVP
Custom File
ร่วมกัน
ดังนั้นต้องตรวจ Storage ของ Resource ก่อนย้าย
㊳ Enhanced มี KVP Migration Change
Cfx.re ระบุว่า Key-Value Database Files ต้อง Migration
ถ้า QBCore Third-party Resource ใช้ KVP เก็บ
Settings
Cache
Persistent State
อาจดูเหมือน Resource Reset หลังย้าย
แม้ MySQL Database ยังอยู่ครบ
㊴ วิธีหา Resource QBCore ที่ใช้ KVP
Developer สามารถ Search Source หา API เช่น
SetResourceKvp
GetResourceKvp
DeleteResourceKvp
หรือ API ที่เกี่ยวข้อง
ทำรายการ Resource เหล่านี้ก่อน Cutover
㊵ qb-garages ต้องทดสอบอะไร?
Garage เป็นระบบ Critical ของ QBCore Server
ตรวจ
Vehicle Owner
State
Garage
Impound
Spawn
Store
Plate
Fuel
Engine/Body Data
Persistence
รวมถึง Restart Server
㊶ รถผู้เล่นจะหายไหม?
ไม่ควรหายเพียงเพราะย้าย Enhanced หาก Vehicle Database ย้ายถูกต้อง
แต่ต้องแยก
ข้อมูลรถ
ออกจาก
Model รถ
รถ Custom อาจยังอยู่ใน Database แต่ Spawn ไม่ได้ถ้า Asset ยังเป็น Legacy และไม่ Compatible
㊷ qb-vehicleshop ใช้ต่อได้ไหม?
Official QBCore มี qb-vehicleshop ซึ่งสามารถนำมาทดสอบบน Enhanced ได้
ควรตรวจ
Buy
Finance
Ownership
Plate
Dealer
Database
แต่ Model รถที่ขายต้องตรวจ Asset แยกต่างหาก
㊸ Custom Vehicle ต้องทำอะไร?
FiveM Enhanced มี Asset Pipeline ต่างจาก Legacy บางส่วน
Cfx.re มี Alchemist สำหรับ Conversion Custom 3D Asset
Vehicle Pack เก่าจึงควรตรวจ
Model
Texture
Collision
LOD
Meta
หลัง Conversion
㊹ Map/MLO ของ QBCore Server ใช้ได้เลยไหม?
Framework ไม่ได้ทำให้ Map Compatible
Police Station, Hospital, Dealership, Mechanic Shop หรือ Housing MLO ที่สร้างจาก Legacy ต้องตรวจ Asset เช่นเดียวกับ Framework อื่น
Resource Scriptอาจ Start ได้ แต่ Map ยังผิดได้
㊺ Alchemist ใช้กับ QBCore Resource ได้ไหม?
ได้ เพราะ Tool ไม่ได้ผูกกับ Framework
Alchemist ทำงานกับ GTA V Legacy Assets
ดังนั้นไม่สำคัญว่า Server ใช้
QBCore
ESX
Qbox
Standalone
ถ้ามี Custom 3D Asset ก็สามารถนำไป Conversion ตามประเภทที่รองรับได้
㊻ Clothing ต้องทดสอบหรือไม่?
ต้อง
QBCore Serverจำนวนมากใช้
qb-clothing
Appearance Resource
Third-party Clothing
ข้อมูล Character เดิมอาจอ้างอิง Drawable/Texture
ควรทดสอบ Character เก่าหลาย Account หลัง Migration
㊼ qb-menu และ qb-input ใช้ได้ไหม?
Official QBCore Ecosystem ยังมี Resource สำหรับ Menu/Input
Resource UI ประเภทนี้มีความเสี่ยงจาก Enhanced ต่ำกว่า 3D Asset โดยตรง แต่ต้องทดสอบ
Open
Close
Input
Focus
Callback
Keyboard
จริง
㊽ NUI ต้องทดสอบ Memory ด้วยหรือไม่?
ควร
Resource เช่น
Phone
Inventory
HUD
MDT
สามารถมี NUI/Browser Memory Usage
เปิด/ปิด UI ซ้ำหลายครั้งและดูว่า Memory เพิ่มผิดปกติหรือไม่
Enhanced Compatibility ไม่ได้มีเพียง Crash กับ Error
㊾ HUD QBCore ต้องทดสอบอะไร?
HUD อาจดึงข้อมูล
Health
Armor
Hunger
Thirst
Stress
Money
Voice
Vehicle
จากหลาย Resource
หาก Dependency หนึ่งไม่ทำงาน HUD สามารถแสดงข้อมูลผิดทั้งที่ตัว HUD ไม่มี Error
㊿ Stress/Hunger/Thirst เดิมควรใช้ต่อไหม?
Resource Logic ลักษณะนี้มีโอกาส Migration ได้ง่าย แต่ควร Audit Performance
Resource เก่าบางตัวใช้ Loop ถี่เกินจำเป็น
ตรวจ
CPU
Tick
Player Count
ด้วย Resmon/Profiler
Migration เป็นโอกาสปรับ Code เก่าให้ดีขึ้น
51. QBCore Enhanced แล้ว CPU จะลดเองไหม?
ไม่รับประกัน
Enhanced มี Platform Optimization หลายด้าน แต่ Resource QBCore ที่เขียนไม่ดีสามารถยังใช้ CPU สูงได้
เช่น
while true do
Wait(0)
-- งานหนักทุกเฟรม
end
ควร Optimize Resource เอง
52. Resmon ใช้กับ QBCore ได้ไหม?
ได้
Resource Monitor สามารถช่วยดู
CPU
Memory
ต่อ Resource
จึงเหมาะกับการตรวจ
qb-core
qb-inventory
qb-target
Phone
Jobs
Custom Scripts
ก่อน Production
53. Profiler ใช้หา QBCore Script ช้าได้ไหม?
ได้
ถ้า Server มี
Thread Hitch
CPU Spike
Server Tick สูง
ใช้ Profiler ตรวจ Resource และ Function ที่ใช้เวลามาก
อย่าเพิ่ม CPU Server ก่อนหา Resource ต้นเหตุ
54. State Bags มีผลกับ QBCore Resource ไหม?
Core QBCore ทุกตัวไม่ได้จำเป็นต้องมีปัญหา แต่ Third-party Resource จำนวนมากใช้ State Bags
เช่น
Door
Vehicle
Duty
Entity Interaction
Player Status
Enhanced เปลี่ยน State Bag Replication บางส่วน จึงต้อง Test Resource ที่พึ่งระบบนี้
55. State Bag ต้องทดสอบหลาย Client
สมมติ Player A เปลี่ยน State รถ
ต้องตรวจว่า
Player A เห็นถูก
Player B เห็นถูก
Player C ที่เข้ามาทีหลังเห็นถูก
ถ้าทดสอบ Client เดียวจะไม่พบ Sync Bug หลายประเภท
56. Anti-cheat ของ QBCore Server ต้องตรวจใหม่ไหม?
ต้อง
Anti-cheat ไม่ใช่ส่วนของ QBCore Core และอาจพึ่ง
Connection
Events
Entities
Player Scope
Network Behavior
ที่ Enhanced เปลี่ยน
ควรตรวจ Enhanced Support จากผู้พัฒนา Anti-cheat โดยตรง
57. Admin Menu ต้องตรวจอะไร?
ทดสอบ
Player List
Kick
Ban
Teleport
Bring
Freeze
Spectate
Revive
Vehicle Spawn
Entity Delete
โดยเฉพาะ Player List และ Spectate ที่อาจเกี่ยวกับ Scope
58. QBCore Script ที่ใช้ OneSync Workaround ควรทำอย่างไร?
Audit Code
Workaround บางส่วนที่สร้างขึ้นเพื่อแก้ Behavior ของ Legacy P2P/OneSync อาจ
ไม่จำเป็นแล้ว
ทำงานผิด
เพิ่ม Latency
บน Enhanced
อย่าย้าย Workaround ทุกตัวโดยไม่ตรวจ
59. Asset Escrow มีผลกับ QBCore ไหม?
มีผลกับ Paid Resource ที่ Server ใช้
Cfx.re Documentation ปัจจุบันยังระบุ Asset Escrow ว่ายังไม่ได้ Implement ใน Enhanced
ดังนั้น QBCore Core อาจทำงาน แต่ Paid
Phone
Housing
Job
Map
Vehicle
ที่พึ่ง Escrow อาจเป็นตัวหยุด Migration Production
60. Paid Resource ใช้ไม่ได้ควรทำอย่างไร?
ควร
ตรวจ Version
ติดต่อ Developer
รอ Enhanced Support
หา Alternative หากจำเป็น
ไม่ควร Crack หรือ Bypass Escrow
หาก Resource เป็นระบบ Critical การอยู่ Legacy ต่อชั่วคราวปลอดภัยกว่า
61. QBCore Server Pack เก่าใช้กับ Enhanced ได้ไหม?
ไม่แนะนำให้ Copy ทั้งชุด
Server Pack เก่าอาจมี
qb-core เก่า
qb-inventory เก่า
Dependency เก่า
Script Crack
Map Legacy
รถ Legacy
หลายปัญหาพร้อมกัน
วิธีที่สะอาดกว่าคือสร้าง Cfx Server Enhanced แล้ว Migration Stack ที่จำเป็นทีละส่วน
62. Start Order QBCore ควรเป็นอย่างไร?
ขึ้นอยู่กับ Resource จริง แต่หลักทั่วไปคือ
Libraries / Database
↓
qb-core
↓
Core Dependencies
↓
Inventory / Target
↓
Character / Spawn
↓
Jobs
↓
Phone / Voice
↓
Optional Resources
อ่าน fxmanifest.lua และ Documentation ของ Resource เป็นหลัก
อย่าจัดลำดับจากชื่อ Folder อย่างเดียว
63. Missing Export หลังย้ายเกิดจากอะไร?
อาจเกิดจาก
Resource ยังไม่ Start
Version ไม่ตรง
Export ถูกเปลี่ยน
Dependency ผิด
Fork คนละรุ่น
เช่น Resource Third-party เรียก Export ที่ไม่มีใน qb-core Version ปัจจุบัน
ต้องแก้ Compatibility ของ Resource ไม่ใช่ FiveM Client
64. QBCore Fork ดัดแปลงหนักต้องระวังไหม?
มาก
Server บางแห่งแก้ qb-core โดยตรงมาหลายปี
อาจมี
Custom Player Data
Custom Events
Custom Exports
Core Logic
Resource ภายนอกทั้งหมดจึงพึ่ง Fork นี้
ควร Migration Fork เดิมขึ้น Test Server ก่อน แล้วค่อยเปรียบเทียบกับ QBCore ปัจจุบัน
65. อย่าเปลี่ยนจาก Fork ไป Official พร้อม Enhanced หาก Server ใหญ่
ทำได้ แต่จะเพิ่มตัวแปรมาก
ถ้า Production มี Custom Fork หนัก การ
Enhanced Migration + Core Rewrite
พร้อมกันอาจสร้าง Bug จำนวนมาก
ควรแบ่งเป็น Phase
66. วิธีทดสอบ QBCore หนึ่ง Stack แบบถูกต้อง
Phase 1 — Core
Connect
Character
PlayerData
Money
Job
Metadata
Phase 2 — Inventory
Item
Stash
Trunk
Save
Phase 3 — Interaction
Target
Doors
NPC
Zones
Phase 4 — Jobs
Police
EMS
Mechanic
Phase 5 — Communication
Phone
Radio
Voice
Phase 6 — Vehicles
Garage
Shop
Keys
Custom Cars
Phase 7 — World
Maps
MLO
Clothing
ผ่านทีละ Phase จึงเปิด Production
67. ต้องทดสอบ Restart Persistence
ทำ Flow ตัวอย่าง
Login
รับเงิน
เก็บ Item
เปลี่ยน Job State
ซื้อรถ
เก็บ Garage
Logout
Restart Server
Login ใหม่
ตรวจว่าข้อมูลทุกอย่างยังอยู่
นี่สำคัญกว่าการดูว่า Resource Start สีเขียว
68. QBCore Migration ควรใช้ผู้เล่นกี่คนทดสอบ?
เริ่ม 2–5 คนสำหรับ Function Test
จากนั้นเพิ่มจำนวนเพื่อดู
Player Scope
Voice
Scoreboard
Jobs
Vehicles
Entity
Performance
Resource ที่ผ่านกับ Player คนเดียวอาจไม่ผ่านกับ 100 คน
69. ทำ Compatibility Checklist
ตัวอย่าง
| QBCore System | สถานะ |
|---|---|
| qb-core | ✅ |
| Multicharacter | ✅ |
| Spawn | ✅ |
| Inventory | ✅ |
| Target | ✅ |
| Police | 🧪 |
| Phone | ⚠️ |
| Voice | 🧪 |
| Garage | ✅ |
| Custom Cars | 🔄 |
| MLO | 🔄 |
ทำรายการจริงก่อน Cutover
70. สถานะ Resource ที่แนะนำ
ใช้
✅ ผ่าน
🧪 กำลังทดสอบ
⚠️ ต้องแก้
🔄 รอ Update/Conversion
❌ ใช้ไม่ได้
Resource Critical ที่ยังเป็น ❌ ไม่ควรนำ Production
71. QBCore Server ควรย้าย Enhanced เมื่อไร?
เมื่อ
qb-coreผ่านCharacter ผ่าน
Database ผ่าน
Inventory ผ่าน
Jobs ผ่าน
Phone/Voice ผ่าน
Garage ผ่าน
Custom Assets ผ่าน
Anti-cheat ผ่าน
Performance ผ่าน
Backup พร้อม
Rollback พร้อม
ถ้ายังขาดระบบ Critical ให้ Legacy Production ทำงานต่อก่อน
72. ต้อง Wipe QBCore Server ไหม?
ไม่จำเป็น
FiveM Enhanced ไม่ได้มี Requirement ว่า QBCore Server ต้อง
Wipe Character
Wipe Money
Wipe Items
Wipe Vehicles
ถ้า Framework และ Database Migration ถูกต้องสามารถรักษาข้อมูลผู้เล่นได้
การ Wipe เป็นนโยบายของ Community
73. วิธี Migration QBCore แบบปลอดภัย
ขั้นที่ 1
Backup Server และ Database
ขั้นที่ 2
สร้าง Cfx Server Enhanced แยก
ขั้นที่ 3
Clone Database
ขั้นที่ 4
ติดตั้ง Database/Library Dependencies
ขั้นที่ 5
Start qb-core
ขั้นที่ 6
ทดสอบ Character และ PlayerData
ขั้นที่ 7
ติดตั้ง Inventory/Target
ขั้นที่ 8
เพิ่ม Jobs
ขั้นที่ 9
เพิ่ม Phone/Voice
ขั้นที่ 10
เพิ่ม Garage/Vehicle
ขั้นที่ 11
Convert Map/MLO/รถ
ขั้นที่ 12
ทดสอบ Admin/Anti-cheat
ขั้นที่ 13
Load Test
ขั้นที่ 14
เตรียม Rollback
ขั้นที่ 15
จึง Cutover
74. สิ่งที่ไม่ควรทำ
หลีกเลี่ยง
Copy Server Pack ทั้งชุดแล้วเปิด
ไม่มี Database Backup
ใช้ Production DB ทดลอง
Update QBCore ทุกตัวพร้อม Migration
ไม่ตรวจ OneSync
ไม่ตรวจ State Bags
ไม่ทดสอบ Voice
ไม่ Convert Legacy Assets
Bypass Escrow
ไม่มี Rollback Plan
การลดจำนวนสิ่งที่เปลี่ยนพร้อมกันช่วยลดเวลา Debug ได้มาก
75. คำถามที่พบบ่อย
FiveM Enhanced ใช้ QBCore ได้ไหม?
ได้ในเชิง Platform เพราะ QBCore เป็น FiveM Lua Framework และ Enhanced ยังคงรองรับ Existing Lua Resources จำนวนมาก
ต้องเปลี่ยน QBCore เป็น Framework อื่นไหม?
ไม่จำเป็น
qb-core เดิมใช้ได้ไหม?
สามารถนำมาทดสอบได้ ควรใช้ Version ที่ยังเหมาะกับ Resource Stack ของ Server
Character และเงินจะหายไหม?
ไม่ควรหายหาก Database Migration ถูกต้อง
qb-inventory ใช้ได้ไหม?
สามารถนำ Official Resource มาทดสอบได้ แต่ต้องตรวจ Item, Stash, Trunk และ Persistence
qb-target ใช้ได้ไหม?
สามารถทดสอบได้ แต่ Resource ที่เกี่ยวกับ Entity ควร Multiplayer Test เนื่องจาก Enhanced เปลี่ยน Networking
qb-phone ใช้ได้ไหม?
สามารถทดสอบได้ แต่ต้องตรวจ NUI, Database และ Voice Integration
QBCore Voice ใช้ได้ไหม?
Voice เป็น Resource แยกจาก Core และ Enhanced มี Voice Stack ใหม่ จึงต้องทดสอบ
Custom Map และรถใช้ได้ไหม?
ต้องตรวจ Asset แยกและอาจแปลงด้วย Alchemist
ต้อง Wipe Server ไหม?
ไม่จำเป็นเพียงเพราะย้าย Enhanced
76. สรุป FiveM Enhanced QBCore ใช้ได้ไหม
คำตอบคือ FiveM Enhanced สามารถใช้ QBCore ได้ และไม่จำเป็นต้องสร้าง QBCore Server ใหม่ตั้งแต่ศูนย์
qb-core เป็น FiveM RP Framework ที่ใช้ Lua เป็นหลัก และ Cfx.re ออกแบบ Enhanced ให้รักษา Backward Compatibility กับ Existing Lua, JavaScript และ C# Resources จำนวนมาก
Official QBCore Ecosystem ยังประกอบด้วย Resource หลายตัว เช่น
qb-core
qb-inventory
qb-target
qb-phone
qb-multicharacter
qb-policejob
qb-vehicleshop
ดังนั้นการ Migration QBCore ต้องมองเป็น ทั้ง Stack ไม่ใช่เพียงเปิด qb-core แล้วเห็นว่าไม่มี Error
Enhanced มี Breaking Changes ที่ต้องตรวจจริง โดยเฉพาะ
P2P Sync → OneSync non-big → Player Scope → State Bags → KVP → Voice → Asset → Pure Mode
Resource QBCore หรือ Third-party Script ที่พึ่งระบบเหล่านี้อาจต้องแก้แม้ Core Framework จะทำงาน
ในส่วนของ Map, MLO และรถ Custom ต้องแยกออกจาก Lua Compatibility เพราะเป็น 3D Asset และอาจต้องแปลงด้วย Alchemist ก่อนใช้งานบน Enhanced
สำหรับ Production Server comsiam แนะนำโครงสร้าง
Legacy Production → Enhanced Test → Database Clone → QBCore Core → Resources → Assets → Multiplayer/Load Test → Rollback → Production
สรุปสั้นที่สุด:
qb-core → สามารถ Migration Test ได้
Character/Money/Jobs → ไม่จำเป็นต้อง Reset
qb-inventory/qb-target → ทดสอบแยก
qb-phone → ตรวจ NUI + Database + Voice
Police/Admin/Scoreboard → ตรวจ Player Scope
Custom Vehicles/MLO → ตรวจ Asset และใช้ Alchemistตามความจำเป็น
Third-party/Paid Resource → ตรวจ Enhanced Compatibility ทีละตัว
หาก QBCore Server ถูก Migration แบบทีละ Layer พร้อม Backup และ Database Clone ก็สามารถรักษา Character, Economy, Inventory และระบบ Roleplay เดิมไว้ได้ โดยไม่ต้อง Rewrite Server ใหม่ทั้งหมดเพียงเพราะเปลี่ยนจาก FiveM Legacy ไป Enhanced
Comments
Post a Comment