Bablo ResourcesDocs

Crews & Invites

A work order can be done alone or by a crew of up to Config.Job.maxMembers players, 4 by default. A crew shares one route and one work van. Every member gets the same share of the payout, and a bigger crew earns a bonus on top.

LUA
Config.Job = {
    maxMembers = 4,
    inviteMs = 30000,
    inviteDistance = 15.0,
    crewBonusPercent = { [1] = 0, [2] = 10, [3] = 20, [4] = 30 },
}

These keys sit in Config.Job together with the other job settings.

KeyDefaultMeaning
maxMembers4Most players in one crew, the leader included.
inviteMs30000Milliseconds a player has to answer an invite.
inviteDistance15.0Metres within which players are listed as nearby, can be invited and can accept.
crewBonusPercentSee aboveBonus in percent for each crew size, see Crew bonus and split.

The Crew tab is made for four players. It always shows four seats, counts members out of 4 and greys out the invite buttons at four members. Keep maxMembers at 4 or lower. With a lower value, inviting into a full crew answers The crew is full.


Alone or as a crew

  • Alone: pick a route and press Start route. You become a crew of one and the whole payout is yours.
  • As a crew: one player is the Crew leader. Only the leader starts routes, collects and returns the van and cancels a work order. Every member can repair boxes and help a crewmate.

The crew stays together after a route, ready for the next one. Who is in the crew can only change between routes. While a work order runs nobody can be invited: Finish the current work order before changing the crew.


The Crew tab

Open the work order menu at the dispatcher and switch to Crew.

PartWhat it shows
My crewThe badge Solo friendly while you are not in a crew, Even split once you are.
Crew cardThe crew name (the leader’s name followed by Crew), the leader, Members (2 / 4), the Payout bonus for the current crew size and the Split mode, always Even.
CrewFour seats. Each member shows their server ID and Crew leader or Technician. An empty seat reads Add member and Invite a player by ID.
Players nearbyPlayers within inviteDistance metres who are not in a crew, with their ID and distance. The button with the count (2 found) loads the list again. When nobody is near: No other technicians nearby.
ButtonsStart a crew while you have none, otherwise Leave crew. Refresh loads everything again.

Starting a crew

Start a crew makes a crew with you as leader. You do not have to press it: inviting a player while you have no crew makes one for you, and so does starting a route alone. A crew can only be made at the depot: Visit the electrician depot to create a crew.


Inviting players

Only the leader can invite, and only while the crew has no work order and has a free seat. There are two ways:

  • Press Invite next to a player under Players nearby. The button changes to Sent.
  • Click Add member on an empty seat, type the player’s server ID (Player ID — e.g. 42) and press Send invite. The player still has to stand within inviteDistance metres.
SituationMessage
No player with that ID is onlineThat player is no longer nearby.
The player is too far away or in another routing bucketMove closer to that player.
The player’s character is not loaded yetThat character is still loading.
The player is already in a crewThat player already has a crew.
The crew has no free seatThe crew is full.
The crew has a work orderFinish the current work order before changing the crew.
You are not the leaderOnly the crew leader can do that.

A new invite to the same player replaces the one they already had.


The invite pop-up

The invited player sees a card in the middle of the screen: the leader’s name with Crew leader, Jordan Hayes invited you to their crew., the Members and the Split mode, a bar that counts down under Expires in, and the buttons Decline and Join crew.

  • The card takes the mouse straight away, so you can click without pressing anything first.
  • Esc lets go of the mouse. The card stays on screen with F7 to respond until it runs out. Press F7 to take the mouse again.
  • If you are busy when the invite arrives, the card does not take the mouse. During a repair and in the Route Creator it stays hidden until you are done. Then press F7.
  • If the work order menu is open, the card shows on top of the menu. Esc there closes the menu, and the card stays on screen.
  • After inviteMs the invite expires and the card goes away.
LUA
Config.Command = 'electrician'

F7 runs the command in Config.Command. It only answers a crew invite: the work order menu opens at the dispatcher only. The key is a FiveM key binding, Electrician - answer a crew invitation, so players can change it under Settings → Key Bindings → FiveM. See also Commands.

Joining

Join crew puts you in the crew. The server checks again:

SituationMessage
You are more than inviteDistance metres from the leaderMove closer to the crew leader to accept.
The invite ran outThis invitation has expired.
A newer invite replaced this oneThis invitation has changed. Use the latest invitation.
The crew started a route or filled up in the meantimeThis crew is no longer available.
You joined another crew in the meantimeLeave your current crew first.
The Framework:canDoMission hook says noYou cannot take electrician work right now. or the reason the hook returns, see Exports & Hooks

Decline removes the invite. The leader is not told.


Leaving a crew

Press Leave crew on the Crew tab.

  • Between routes you leave at once.
  • During a route it asks first: Leave mission and crew with You will give up your unpaid earnings. Your crew can continue without you. If you are the last member, the mission is cancelled and the work van is removed. Press Leave crew to go or Keep working to stay.
  • A repair you were doing is stopped, and if you were helping at a box you stop helping.

When the leader leaves

The member who has been in the crew longest becomes the new leader, and the route goes on. The same happens when the leader leaves the server.

Disconnects and character changes

A player is taken out of their crew, as if they pressed Leave crew, when they:

  • leave the server,
  • switch to another character,
  • have no character loaded, for example at the character selection, for longer than Config.Job.dispatch.unloadedGraceMs (15 seconds by default).

They lose their share of the current route. If they were the last member, the work order is cancelled and the van is removed.


Crew bonus and split

The bonus depends on how many players are in the crew when the route starts. The route’s payout plus the bonus is then split evenly between them.

Crew sizeBonusEach player on a $2,400 route
10 %$2,400
210 %$1,320
320 %$960
430 %$780
  • Locked at the start. The bonus and each player’s share are fixed when the leader presses Start route. If someone leaves, the others keep the same share. The menu then notes Bonus locked to starting crew size: 4.
  • Even split. Every member who is still in the crew when the van is returned gets the same share. A member who left gets nothing, and their share is not divided among the others.
  • A crew size missing from crewBonusPercent, or a value below 0 or above 100, gives no bonus.

The route cards and Your payout in the menu already show the share for your current crew size. See Payouts for how the money is paid.