Follow these steps in order. Make sure all dependencies are running before you start the resource.
Dependencies#
Install and ensure the following resources are started before JM-UwUCatCafe in your server.cfg:
- qb-core (or
qbx_core) - qb-target or ox_target
- PolyZone
- qb-doorlock
qb-inventoryorox_inventoryqb-menuoxmysqlorghmattimysql(for database and stock persistence)
Installation Steps#
- Place the
JM-UwUCatCafefolder inside your server'sresourcesdirectory. - Add the following line to your
server.cfg, after all dependencies:
ensure JM-UwUCatCafe- Import
uwu_catcafe.sqlinto your server database. This creates thejobs,job_grades,items, anduwu_store_stocktables and inserts all required data. - Add item images to your inventory resource. Copy all
.pngfiles from theitems/folder into your inventory's images directory. - Register the items in your inventory:
- Install the door lock configs. Copy the four
.luafiles fromqb-door-lock-files/into yourqb-doorlock/configs/directory. - Open
config.luaand updateConfig.Cafe.Coordsto match your MLO's location if it differs from the default. - Restart your server (or use
ensure JM-UwUCatCafein the console after the dependencies are running).
Verifying the Installation#
- Check the server console for
[JM-UwUCatCafe]log lines. A successful start will show the version checker output and a stock-loaded message. - Log in with a character assigned the
uwucafejob and head to the cafe location. The map blip, duty clock, register, and kitchen zones should all be interactive.
Warning
If you import uwu_catcafe.sql onto a server that already has an items table, the CREATE TABLE IF NOT EXISTS statement is safe to run. However, if duplicate item names exist in your table, the INSERT rows may conflict — merge them manually instead of running the full SQL block.