Skip to content

Setup

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

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

Required Dependencies#

  • oxmysql
  • ox_lib
  • 0r_lib
  • excavator-vehicles
  • excavator-map
  • 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 excavator-vehicles
start excavator-map
start 0r-excavatorjob

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_excavator_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:

  • excavator_op_tablet

OX Inventory#

{% tabs fullWidth="false" %}

lua
["excavator_op_tablet"] = { label = "Excavator Tablet", weight = 100, stack = false },

QB Core#

{% tabs fullWidth="false" %}

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

Final Checklist#

  • 0r_lib starts without errors
  • excavator-vehicles starts without errors
  • excavator-map starts without errors
  • 0r-excavatorjob starts without errors
  • excavator_op_tablet exists if openWithItem.active = true
  • The profile table is created automatically in MySQL