Skip to content

Installation

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

Cuxial Electrician needs no SQL import and no inventory items. It creates its own tables on first start.

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

cuxial_garages is optional. When it is running, every crew member receives the keys of the service trucks at the start of the job and loses them at the end. Without it the script hands out no keys.

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.

Check the game build ​

The ladder used on street lamps is a game model added in build 2944. On an older build the job still works, with a shorter ladder.

server.cfg
cfg
sv_enforceGameBuild 2944

Any build equal to or newer than 2944 is valid. Skip this step if your server already enforces one.

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 job logs
set cuxial_electrician_webhook "https://discord.com/api/webhooks/..."

# Debug traces in the console
setr cuxial_electrician_debug "0"

The webhook goes in server.cfg, never in shared/config.lua. The name of the convar can be changed in logs.convar.

Start the resources ​

Start the job after its dependencies and after your framework. cuxial_jobs must start before the job:

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_electrician

No SQL to run. On start the job creates cuxial_jobs_players, cuxial_jobs_runs, cuxial_jobs_run_members and cuxial_jobs_audit. These tables are shared by all the Cuxial jobs.

Do not import the file in the install folder. The job creates the tables it uses on start.

Check that it works ​

  1. Join the server and open the map. The job blip is at the position set in npc.coords.
  2. Go to the NPC and use the interaction. The panel opens.
  3. Pick a region and press Start job. A service truck appears at the spawn point of the region and the repair points show up on the map.
  4. Repair every point, drive the truck back to the drop-off and press E at the wheel. The summary shows the payment.

Next: adjust the job to your server in Configuration.

© Cuxial