Bablo ResourcesDocs

Installation

Follow these steps in order. The steps marked optional can be skipped and done later. A full server.cfg example is at the end of the page.

StepWhat you set upNeeded?
1Download the resourceYes
2server.cfg: OneSync and start orderYes
3The depot and the van spotCheck
4Who may use the route creatorYes
5Routes for the work order boardOptional
6Vehicle keys, notifications, outfit and hooksOptional

1. Download the resource

To download the asset, you must have purchased it on your own CFX account. Otherwise, use the transfer system to move it to a different account.

After purchasing from our website, the asset is delivered to your CFX Portal. Download it there and put the bablo-electricjob folder in your resources folder.

There is no SQL to import and no item to add. The job uses no database.

2. server.cfg

Your framework (es_extended, qb-core or qbx_core) must be started before bablo-electricjob, or it is not detected.

PLAINTEXT
ensure ox_lib
ensure qb-core
ensure ox_target

ensure bablo-electricjob

Use es_extended or qbx_core instead of qb-core for your framework, and qb-target instead of ox_target if that is your target resource. Start the target resource before bablo-electricjob as well, so it is picked up. Without a target resource, players get a built-in [E] prompt.

OneSync must be on. Without it the resource does not start.

The framework and the target resource are picked up on their own. To see what was found, turn Config.DEBUG on once: the console then prints lines such as Detected framework: qbcore and Detected target: ox_target. If the wrong resource is picked, set it by hand in config.lua. See Configuration.

Set Config.DEBUG = false in config.lua on a live server. While it is on, repairs are much shorter: one round at a breaker cabinet and one blown fuse in a fuse box.

3. Depot and van

The depot is where players pick their work order, collect the work van and return it to get paid. It has a default position. Check that nothing of your own map is in the way there, or move it.

LUA
Config.Job = {
    -- ...
    depot = vector4(735.28, 130.74, 80.71 - .97, 239.76),
    dispatcher = 's_m_m_dockwork_01',
    -- ...
    van = {
        model = 'burrito3',
        coords = vector4(743.58, 131.81, 80.07, 241.38),
        -- ...
    },
}
SettingWhat it is
depotWhere the dispatcher stands: vector4(x, y, z, heading). The depot blip is placed here too, and players count as being at the depot within depotDistance (12 metres) of it.
van.coordsWhere the work van is parked out and where it has to be returned: vector4(x, y, z, heading). The van counts as returned within returnRadius (15 metres) of this spot.

The default depot takes .97 off the height so the dispatcher’s feet stand on the ground. Do the same with a position you copy from your own character. Keep the van spot close to the dispatcher (the default is about 8 metres away), because the leader has to stand at the depot and next to the van to return it.

Keep the van spot clear. When another vehicle stands within 4 metres of it, the van cannot be dispatched and the leader gets The van bay is occupied. Clear it and try again.

Everything about the depot, the blip and the van is on Configuration.

4. Route creator permission

Routes are built in game with the route creator. Only players with the ACE in Config.Placement.ace (default command.electricplacer) can use it. Give it to your admin group with one line in server.cfg:

PLAINTEXT
add_ace group.admin command.electricplacer allow

A group that already has command allowed, like group.admin in the default server.cfg, has it already. Everyone else gets You do not have permission to use the electrician placer.

Open the creator in game with:

PLAINTEXT
/electriceditor

The command name comes from Config.Placement.command. /electriceditor and /electricplacer always open the creator as well. See Route Creator and Commands.

5. Routes

The resource ships with ready-made service rounds around Los Santos in data/placements.json, so the work order board has routes right away. You can keep them, change them or build your own:

Nothing to do. The routes are loaded on start. Players see up to five of them on the board at a time, and the board picks new ones every 10 minutes. See Work Orders.

Routes can also be written in config.lua under orders and sites, but those are only defaults: a box that is saved in data/placements.json uses the saved version, and editing it in config.lua does nothing. The shipped data/placements.json deletes the four example boxes of config.lua, so its two example routes are not on the board. See Configuration.

Your routes live in data/placements.json. Back it up before you update, and copy it back afterwards, or your own routes are replaced by the ones in the update.

To test the job, go to the depot blip and use Electrician work orders at the dispatcher. Pick a route under Routes and press Start route.

6. Optional extras

ExtraWhen you need itHow
Vehicle keysYour server uses a key resource and the crew should get keys to the van.Picked up on its own: qbx_vehiclekeys, Renewed-Vehiclekeys, wasabi_carlock, qs-vehiclekeys, tgiann-hotwire, cd_garage or qb-vehiclekeys. Another one can be added in frameworks/vehiclekeys/client.lua. See Work Van.
NotificationsYou want ox_lib or GTA notifications instead of your framework’s.Set Config.Notify. See Configuration.
Work outfitYou want other work clothes, or none.Change Config.WorkOutfit. See Work Outfit.
Framework hooksOnly some players may take the job, or you want to give XP or rewards after a repair or a route.Edit canDoMission, onFinishMinigame and onFinishMission in frameworks/<framework>/server.lua. See Exports & Hooks.
Language and coloursYour server does not use English, or the colours should match your server.Config.Locale and Config.Theme. See Languages and Theme.

Full server.cfg example

PLAINTEXT
ensure ox_lib
ensure qb-core
ensure ox_target

add_ace group.admin command.electricplacer allow

ensure bablo-electricjob

Use your own framework and target names. Leave out the add_ace line if your admin group already has command allowed.

Commands to get started

WhatDefaultChange it with
Route creator/electriceditorConfig.Placement.command
Answer a crew invitationF7 or /electricianConfig.Command
Show the tip for the current step again/electrichelpConfig.Tutorial.command
Hide or show the mission panelIConfig.MissionHud.toggleKey

Every command is listed on Commands.

Next steps

  • Go through Configuration to adjust payouts, crew size, timings and the rest of config.lua.
  • Read Work Orders to see how a job runs from the dispatcher to the payout.