Skip to content

Installation

Install Cuxial Gardener step by step: dependencies, convars and start order.

Cuxial Gardener needs no SQL import and no inventory items. It creates its tables on first start, and the tools are part of the truck.

Check the dependencies ​

These resources must be installed and working before you add the job:

  • ox_lib
  • oxmysql
  • cuxial_bridge, with one of the supported frameworks: QBox, QBCore or ESX
  • sleepless_interact
  • OneSync enabled on the server

Two more come inside the package and are installed in the next step: cuxial_jobs and cuxial_gardener_assets.

cuxial_garages is optional. When it is running, every crew member receives the keys of the job trucks and lawn mowers, and loses them when the job ends. Without it no keys are handed out.

The ladder used to cut branches is a game model that exists from game build 2944. With an older build the job still works, with a shorter ladder. To get the tall one, set sv_enforceGameBuild to 2944 or higher.

Copy the resources ​

The package contains a single folder, [cuxial_jobpack]. Place it inside your resources directory and keep its name. It holds cuxial_jobs, the three jobs (cuxial_diving, cuxial_electrician and cuxial_gardener) and their assets.

If you already have cuxial_jobs from another Cuxial job, replace it with the one in the pack. You only need to start the jobs you use.

Set the convars ​

All of them are optional.

server.cfg
cfg
# Language of the job (en and es are included)
setr ox:locale "en"

# Discord webhook for the job logs
set cuxial_gardener_webhook "https://discord.com/api/webhooks/..."

# Debug traces in the console
setr cuxial_gardener_debug "0"

The webhook goes in server.cfg, never in shared/config.lua. The name of the convar can be changed in logs.convar. It is read when the resource starts: set it above the ensure lines.

Start the resources ​

Start the job after its dependencies and after your framework:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure cuxial_bridge
ensure sleepless_interact
# optional
ensure cuxial_garages
ensure cuxial_jobs
ensure cuxial_gardener_assets
ensure cuxial_gardener

No SQL to run. On first start the job creates cuxial_jobs_players, cuxial_jobs_runs, cuxial_jobs_run_members and cuxial_jobs_audit. These tables are shared by all Cuxial jobs; each row is tagged with its job.

cuxial_gardener_assets adds a vehicle and two props. Restart the server after installing it, not only the resource, so every client loads them.

Check that it works ​

  1. Join the server and open the map. The gardener blip marks the job NPC.
  2. Go to the NPC and use the interaction option. The job panel opens.
  3. Pick the first region and press the start button. A truck and a lawn mower appear next to the NPC.
  4. Follow the route to the region. Weeds, bushes and branches are marked on the map.
  5. Type /gardreset to cancel the test job. The vehicles disappear.

Next: adjust the job to your server in Configuration.

© Cuxial