Skip to content

Setup

Real setup flow, dependencies, database behavior, localization, and required items for 0r-builderjob

This page covers the setup work you should finish before editing routes: dependencies, server.cfg order, database behavior, localization, and menu item setup.

Required Dependencies#

  • oxmysql
  • ox_lib
  • 0r_lib
  • builderjob-assets
  • builderjob-vehicles
  • Your framework: es_extended, qb-core, or qbx_core
lua
start oxmysql
start ox_lib
start framework -- es_extended, qb-core, or qbx_core
-- other resources
start 0r_lib
start builderjob-assets
start builderjob-vehicles
start 0r-builderjob

Database#

You do not need to import SQL manually for this script.

The real resource creates the profile table automatically in modules/mysql/server.lua:

sql
CREATE TABLE `0resmon_builder_job_profiles`

Localization#

Language selection for this resource starts from:

lua
config/main.lua

Default source value:

lua
Config.locale = "en"

If you want another language:

  1. Change Config.locale in config/main.lua
  2. Make sure a matching locale file exists in locales/

Ready To Paste Item Tables#

This script only needs one main item from the real source:

  • builder_tablet

OX Inventory#

{% tabs fullWidth="false" %}

lua
["builder_tablet"] = { label = "Builder Tablet", weight = 100, stack = false },

QB Core#

{% tabs fullWidth="false" %}

lua
builder_tablet = { name = "builder_tablet", label = "Builder Tablet", weight = 100, type = "item", image = "builder_tablet.png", unique = false, useable = true, shouldClose = false },

Final Checklist#

  • 0r_lib starts without errors
  • builderjob-assets starts without errors
  • builderjob-vehicles starts without errors
  • 0r-builderjob starts without errors
  • builder_tablet exists if openWithItem.active = true
  • The profile table is created automatically in MySQL