Common problems
Fixes for the problems server owners report most with Advanced Electrician Job.
Installation Crew stops at the install step, or F8 shows "attempt to index a nil value (upvalue 'bl_ui')"
The job did not find bl_ui when it started. Field Repair Technician uses it too. Install bl_ui, name the folder exactly bl_ui (not bl_ui-2.1.0), and put ensure bl_ui after ox_lib and before gg_electricianjob in server.cfg. Then restart gg_electricianjob. If it still stops, post the F8 error from the install step in the Discord.
To run the job without bl_ui, switch the skill checks to ox_lib as shown in Configuration.
"Could not add item" after a repair or when claiming the daily reward
The reward item does not exist in your inventory. The jobs give plastic and copper, and the daily reward gives Plastic, Glass or Copper with capital letters. Change each item to the exact name your inventory uses. See Reward items.
Anyone can work the job
The job is open to everyone by default. Set job in config/shared/general.lua, as shown in Configuration, then restart gg_electricianjob.
Changes do not show in /ggsettings
Advanced Electrician Job is not in the /ggsettings menu. Edit the files in gg_electricianjob/config/shared/ and restart the resource.
"Target system required for script to function"
The job needs ox_target or qb-target. Install one and start it before gg_electricianjob in server.cfg.
No keys for the work truck with qbx_vehiclekeys
The Qbox txAdmin recipe installs the main branch of qbx_vehiclekeys, which ignores the key request the job sends, and the request also fails when the qbx_vehiclekeys bridge is off. Install the qbx_vehiclekeys v1.0.2 release (the whole folder) and add this line to server.cfg, then restart. The keys arrive a moment after the work truck spawns.
setr qbx_vehiclekeys:enableBridge "true"
No keys with cd_garage when its key system is off
The job gives keys through cd_garage whenever it is started, even with its keys turned off. In core/lib/miniBridge/client.lua, under -- MARK: Add Keys, delete the cd_garage branch (the elseif GetResourceState('cd_garage') line and the two lines under it). Your other key script then gets the keys.
Fuel does not work with qb-sna-fuel
qb-sna-fuel is not in the fuel list, so the job sets the game's own fuel level. In core/lib/miniBridge/client.lua, replace esx-sna-fuel with qb-sna-fuel in the four places it appears, two under -- MARK: Get Fuel and two under -- MARK: Set Fuel. Both scripts use the same GetFuel and SetFuel exports.
The console shows </1>, an escrow error or "Failed to verify protected resource"
The download is damaged or incomplete. Download the latest version again from Granted Assets, replace the whole gg_electricianjob folder, and restart the whole server. If it still fails, post the console error in the Discord.
