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_libexcavator-vehiclesexcavator-map- Your framework:
es_extended,qb-core, orqbx_core
Recommended server.cfg Start Order#
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:
CREATE TABLE `0resmon_excavator_job_profiles`
Localization#
Language selection for this resource starts from:
config/main.lua
Default source value:
Config.locale = "en"
If you want another language:
- Change
Config.localeinconfig/main.lua - 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" %}
["excavator_op_tablet"] = { label = "Excavator Tablet", weight = 100, stack = false },
QB Core#
{% tabs fullWidth="false" %}
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_libstarts without errorsexcavator-vehiclesstarts without errorsexcavator-mapstarts without errors0r-excavatorjobstarts without errorsexcavator_op_tabletexists ifopenWithItem.active = true- The profile table is created automatically in MySQL