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_liboxmysqlcuxial_bridge, with one of the supported frameworks: QBox, QBCore or ESXsleepless_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.
sv_enforceGameBuild 2944Any 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.
# 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:
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_electricianNo 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
- Join the server and open the map. The job blip is at the position set in
npc.coords. - Go to the NPC and use the interaction. The panel opens.
- 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.
- 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.
