Installation
0R SmartTab — Installation
See also: Configuration & FAQ · Exports
Requirements
FiveM server with these resources installed and working:
0r_lib — core, callbacks, notifications (used by SmartTab).
ox_lib — shared scripts.
oxmysql — database (mail, messages, etc.).
xsound — music app.
At least one supported inventory (ox_inventory, qb-inventory, ps-inventory, lj-inventory, core_inventory, codem-inventory, qs-inventory).
Node.js only if your package has no
web/distfolder (see Step 2).
Step 1 — Place the resource
Copy the whole 0r-smarttab folder into resources (or e.g. resources/[0resmon]/). Don’t rename it.
Step 2 — Web UI (only if needed)
Check if 0r-smarttab/web/dist exists and has files (e.g. index.html).
Yes → Skip to Step 3.
No → On your PC, install Node.js, then in a terminal:
Then copy the updated folder to the server.
Step 3 — server.cfg
server.cfg is the file in your server folder that tells FiveM which resources to start. Each resource is started with a line like ensure resource_name. The order of these lines matters: a resource must be started after everything it depends on.
0r-smarttab needs these to be running before it:
0r_lib
Core, callbacks, notifications.
ox_lib
Shared scripts.
oxmysql
Database.
xsound
Music app.
Your inventory
To give/use the tablet item (e.g. ox_inventory, qb-inventory).
What to do:
Open server.cfg (in the root of your server folder).
Find where you start 0r_lib, ox_lib, oxmysql, xsound, and your inventory. If any of these are missing, add them first.
Add
ensure 0r-smarttabon a new line after all of the above.
Example (adapt names if yours differ):
If 0r-smarttab starts before 0r_lib or oxmysql, you will get errors in the console and the tablet may not work. Always keep 0r-smarttab below its dependencies.
Step 4 — Tablet item
Default item name is tablet. If your inventory uses another name, set it in shared/config.lua: Config.TabletItem = "your_item_name". To give the item via script, use the event in Exports.
Checklist
Problems? See Configuration & FAQ.
Last updated