Lumo Bagh-Chal — installation guide
1. Dependencies
| Resource | Required | Notes |
|---|---|---|
| oxmysql | yes | Any recent version |
| qb-core / qbx_core / es_extended | no | Detected at start. None = standalone mode |
| ox_target / qb-target | no | Without one, a built-in [E] Play Bagh-Chal prompt is used |
| object_gizmo + ox_lib | admins | Moves/rotates the table and chairs in /baghchaltables |
| ox_lib or qb-menu | no | Leaderboard menu (otherwise it prints to chat) |
| lumo-interact | no | Used for prompts if present |
2. Install
- Drop the
lumo-baghchalfolder intoresources/(any folder name works). Keep and thestream/folder (the board and pieces). - Add the resource to
server.cfgafter the resources it detects:ensure oxmysql ensure ox_lib ensure qb-core # or qbx_core / es_extended ensure ox_target # or qb-target ensure object_gizmo ensure lumo-baghchal - Start the server. The console prints
[lumo-baghchal] framework: qb(orqbx,esx,standalone). If it's wrong, setConfig.Frameworkinconfig.lua. lumo_baghchal_tablesandlumo_game_statsare created on first start.sql/install.sqlis only needed if your database user can't create tables.
3. Give yourself admin
Admins are the framework groups in Config.Admin.permissions, or anyone with the ACE in Config.Admin.ace (default command, which txAdmin admins already have).
- QBCore / Qbox:
adminandgodwork out of the box. - ESX: add
'superadmin'toConfig.Admin.permissionsif you use it. - Standalone:
add_ace group.admin command allow+add_principal identifier.license:xxxx group.admin.
4. Place a table
- Go where the table should stand and run
/baghchaltables. - + New table here spawns a ghost table with two chairs facing each other.
- Pick a table model and chair model (or None to use a table or chairs already in the map).
- Fly camera lets you fly around and aim, then press E to drop the table there. Move / rotate table opens the gizmo (
Wmove,Rrotate,Enterdone). Use Chair 1/2 for one chair, or Auto-arrange chairs. - Save table. The board appears on it for everyone within
spawnDistance.
5. Play
Walk up to the table, target it (or press E) → Play Bagh-Chal. Host as tigers or goats, or Practice vs Lumo AI. The second player Joins from the list, and others can Watch. Click a piece, then a highlighted point. Backspace twice leaves.
6. Tuning
- Seat height per chair model:
Config.Admin.chairModels[n].sitZ. - Camera:
Config.Table3D.camHeight,camBack,camFovandoverview. - Board sinks into or floats above a table:
Config.Table3D.surfaceOffset. - Clicks hit the wrong point:
debugPoints = true, thenfaceFlipU/faceFlipV.
7. Updating
Replace every file except config.lua (compare it for new options), restart the resource, and ask players to clear their cache if the board looks wrong. Placed tables and stats are kept in the database.