Bablo ResourcesDocs

Commands

Bablo Electrician Job registers a handful of chat commands, most of them with a key binding. Some names and keys come from config.lua, so your server may use different ones. The defaults are shown here. Everything else is done at the dispatcher, at the boxes and in the menus.

CommandDefaultKeyWhoSet in
Answer a crew invitation/electricianF7Every playerConfig.Command
Show the tip for the current step again/electrichelpEvery playerConfig.Tutorial.command
Close the tip on screen/electrichelpdismissF6Every playerConfig.Tutorial.dismissKey
Hide or show the mission panel/electricianhudIEvery playerConfig.MissionHud.toggleKey
Move and resize the mission panel/editelectricuiEvery playerConfig.MissionHud.movable
Open the route creator/electriceditorPlayers with the ACE in Config.Placement.aceConfig.Placement
List and settle unpaid payoutselectricpaymentsServer console onlyFixed

The work order menu has no command. It only opens at the dispatcher, with Electrician work orders. See Work Orders.


/electrician

Answers a crew invitation. It is bound to F7.

PLAINTEXT
/electrician

A new invitation pops up in the middle of the screen by itself and takes the mouse, so the player can click Join crew or Decline right away. A player who closed it with Escape still sees the invitation until it runs out, with the hint F7 to respond. The command gives them the mouse back.

While the work order menu is open, the command closes it. Without an invitation it does nothing.

The name comes from Config.Command. The F7 default is set in the script. See Command and Crews & Invites.


/electrichelp

Shows the tip for the step you are on again, also when you have seen it before.

PLAINTEXT
/electrichelp

It only works during a repair, while you read the box or work on it. At any other time it does nothing. See First-Time Tips.

The name comes from command in Config.Tutorial. With enabled = false there, the command does not exist. See Tutorial.


/electrichelpdismiss

Closes the tip on screen. It is bound to F6.

PLAINTEXT
/electrichelpdismiss

The name is fixed. The default key comes from dismissKey in Config.Tutorial. With enabled = false there, the command does not exist.


/electricianhud

Hides the Mission Progress panel, or shows it again. It is bound to I.

PLAINTEXT
/electricianhud

It does nothing during a repair, while the work order menu is open and while the panel is being moved. The name is fixed. The default key comes from toggleKey in Config.MissionHud, and the panel shows that key next to Hide progress. See Mission HUD & Waypoints.


/editelectricui

Lets a player move and resize the Mission Progress panel.

PLAINTEXT
/editelectricui

The menu closes and the Mission HUD Editor opens. When no work order is running, a sample panel is shown.

ActionHow
Move the panelDrag it.
Resize the panelDrag the corner handle, or use the mouse wheel. The size goes from 60% to 180%.
Back to the default place and sizeReset.
Save and closeDone, or Escape.

The place and size are saved in the player’s own game, so every player sets up their own panel.

It does nothing during a repair or while the route creator is open. With movable = false in Config.MissionHud it does nothing at all. The name is fixed. See Mission HUD.


/electriceditor

Opens the route creator, where you build service routes and place their boxes in the world. See Route Creator.

PLAINTEXT
/electriceditor

Only players with the ACE in Config.Placement.ace (default command.electricplacer) can use it. The server checks it each time the creator loads, saves or deletes. Everyone else gets You do not have permission to use the electrician placer. Give the ACE in server.cfg:

PLAINTEXT
add_ace group.admin command.electricplacer allow

You also have to be on foot (Leave your vehicle before opening the creator.), in the main world and not in the middle of a repair.

The name comes from command in Config.Placement. /electriceditor and /electricplacer always open the creator as well. With enabled = false there, none of them exist. See Placement.


electricpayments

A server console command for payouts that were not paid. Type it in the server console or the txAdmin live console. Used in game it does nothing.

Every payout is written down on the server before it is paid. It is paid as soon as the player is online on that character, and tried again every 5 seconds until then. A payout only needs you when something went wrong while paying it.

Listing unpaid payouts

PLAINTEXT
electricpayments

Prints one line for every payout that is not paid yet:

PLAINTEXT
<reference> | <state> | <character identifier> | <amount> <account>
StateMeaning
pendingWaiting to be paid. Paid automatically when the player is online on that character. A payout the framework refused goes back to this state and is tried again.
in_flightBeing paid right now.
review_requiredSomething went wrong while paying, for example the framework gave an error or the server stopped in the middle. It is never tried again by itself.

When a payout needs review, the player gets Your payment needs administrator review. Reference: <reference> and the console prints [bablo-electricjob] Payment <reference> needs administrator review: <reason>. When the resource stops, every unpaid payout is printed as well.

Settling a payout

Check in your framework whether the money arrived, then settle the payout:

PLAINTEXT
electricpayments resolve <reference> paid
electricpayments resolve <reference> retry
WordWhat it does
paidMarks the payout as paid without paying anything. Use it when the money did arrive, or when you paid the player yourself.
retryPuts the payout back to pending, so it is paid again.

Only payouts in the review_required or in_flight state can be settled. The console answers [bablo-electricjob] Payment resolution: true when it worked and false when it did not, for example because the reference is wrong.

Only use retry when you are sure the money did not arrive, or the player is paid twice.

See Payouts.


Keys

KeyUsed forChanged in
F7Answer a crew invitationKey bindings
F6Close the tip on screenConfig.Tutorial.dismissKey
IHide or show the mission panelConfig.MissionHud.toggleKey
EThe options at the dispatcher and at the boxes when no target resource runsFixed
Escape or BackspaceLeave a repairFixed

Players can change the first three under Settings → Key Bindings → FiveM, where they are listed as Electrician - answer a crew invitation, Electrician - dismiss tutorial tip and Electrician — hide/show mission progress.

FiveM saves a key binding for each player the first time they join. Changing the default key in config.lua later only reaches players who never had the binding.

The keys of the placement camera are on Route Creator.