Installation Guide

Install oxide-roadsideassistancejob, migrate older progression data, review the in-game settings, and verify the full job flow.

Step-by-step setup for oxide-roadsideassistancejob.

Prerequisites

Required resources

These must be installed and running on your server before the roadside job will start:

ResourceRequiredPurpose
ox_libYesShared helper library (translations, menus, dialogs)
oxmysqlYesLets the resource save player progress and settings to your database
o-linkYesConnection layer between this job and your framework (QBCore, Qbox, ESX)

You don't need to configure anything here — this is just so you know which parts of your server this job talks to through o-link:

  • notifications
  • phone messages (shift updates and pay summaries, as texts or mail) and the phone ring for incoming calls
  • paying players and charging fines
  • player names and identity
  • the interaction eye/target on the dispatcher NPC
  • progress bars and menus
  • vehicle keys and fuel for the tow truck
  • work uniforms (optional)

If o-link is already working with your other Oxide resources, you are good to go.

Installation

Place the resource

Put the oxide-roadsideassistancejob folder in your server's resources directory, alongside your other resources.

Start it after its dependencies

In your server.cfg, the roadside job must start after the resources it needs. Make sure the lines appear in this order:

server.cfg
ensure ox_lib
ensure oxmysql
ensure o-link
ensure oxide-roadsideassistancejob

Database — nothing to do

The resource creates its own database tables the first time it starts, so there is no SQL script to run. (sql/install.sql is still included if you prefer to create the tables yourself or want to see the schema.)

The progression table below is shared by current Oxide job resources — it is only created if another Oxide job hasn't already created it:

sql/install.sql
CREATE TABLE IF NOT EXISTS `job_progression` (
    `char_id`            VARCHAR(60)      NOT NULL,
    `job`                VARCHAR(40)      NOT NULL,
    `level`              TINYINT          NOT NULL DEFAULT 1,
    `total_count`        INT              NOT NULL DEFAULT 0,
    `daily_streak`       INT              NOT NULL DEFAULT 0,
    `last_activity_date` DATE             NULL,
    `complaints`         TINYINT UNSIGNED NOT NULL DEFAULT 0,
    `timeout_until`      DATETIME         NULL,
    PRIMARY KEY (`char_id`, `job`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

The roadside job saves its rows in this table with job = 'roadside'.

sql/install.sql also holds two more shared tables, which the job creates on its own in the same way:

  • oxide_settings, where the job saves its settings
  • job_pending_payouts, where shift pay waits for a player who disconnected, logged out or switched character on shift, until their next login

Migrate old data (only if upgrading)

Skip this step on a fresh install.

If you previously ran an older version of an Oxide job that used its own progression table (for example roadsideassistancejob_progression), run sql/migrate_unified_progression.sql once. It copies player progress from the old tables of every Oxide job (landscaping, pizza, postal, animal control, newspaper, roadside) into the shared table, then removes the old tables.

Back up your database before running the migration script.

Review the settings

Settings are edited in-game: join as an admin and run /roadside settings. Changes save to your database and apply instantly — no restart needed.

The files under shared/config/ hold the factory defaults. On the resource's first start every value is imported from those files into the database; after that the database is the source of truth, so edit settings through the in-game menu rather than the files. A file edit made after that only takes effect once you restart and press Reset to default on that setting in the menu.

The most important switches, under General in the settings menu:

  • Use phone messages — send shift messages and the pay summary to the player's phone, and ring it for incoming calls
  • Shift summary style — how the end-of-shift pay summary is shown
  • Shift menu style — which style of shift menu to use
  • Workers per yard — how many players can work from one tow yard at once

See the Configuration Reference for every setting explained, and How Settings Work for the details.

Verification

Startup check

Start your server and watch the console. On startup the resource checks that ox_lib, oxmysql, and o-link are running. If one is missing or started in the wrong order, you will see a clear red error from oxide-roadsideassistancejob telling you which one — fix your server.cfg order and restart.

In-game check

Join the server with a loaded character.
Drive to the tow yard (truck blip on the map, in the Grand Senora Desert by default).
Walk up to the dispatcher NPC and interact with him.
Open the shift menu and clock in.

Confirm that:

  • a tow truck spawns nearby with keys and a full tank
  • tools (jack, spare wheel, jerry can, battery) and cones are visible on the truck bed
  • within about 15–45 seconds, an incoming service call appears on screen

Job check

Accept the incoming call with E.
Drive to the marked location — a timer at the top of the screen counts down.
Complete the work at the scene (the on-screen prompts and the interaction eye guide you through each step).
Confirm the job-complete notification with the pay amount appears.
Return to the dispatcher and clock out — your pay summary should arrive and the money should land in the player's bank account.

If all of that works, the resource is installed correctly.

Optional Setup

Phone messages

When Use phone messages is on (the default), the job sends players phone messages for the shift welcome, a destroyed tow truck, a shift cancelled because the player went down on the job, and the end-of-shift pay summary. It also rings the phone when a call comes in — only the crew leader's phone in a crew, or the solo player's. Players still accept or decline the call on the on-screen call card, exactly as before.

These messages are delivered through o-link, which supports these phone resources: qb-phone, lb-phone, gksphone, okokPhone, qs-smartphone, qs-smartphone-pro, yseries, and Oxide Phone (oxide-phone). How a message arrives depends on your phone:

Arrives asPhones
Text from the tow yardOxide Phone, gksphone, okokPhone, qs-smartphone (Quasar V3)
Mailqb-phone, lb-phone, yseries, qs-smartphone-pro, older qs-smartphone versions — and any phone whenever a text can't be sent

Texts and the call ring need o-link 1.11.0

Texts and the incoming-call ring need o-link 1.11.0 or newer. With an older o-link, every message arrives as mail, as before, and the phone doesn't ring for calls. The ring also needs a phone that shows notifications — every supported phone except qb-phone and older qs-smartphone versions.

If your server doesn't run a supported phone, the messages simply won't arrive — turn Use phone messages off (Config.usePhone = false) so players aren't left waiting on messages. Each finished job's earnings, a destroyed truck, and going down on the job always also show as regular on-screen notifications, with or without a phone. With Use phone messages off, the pay summary shows as a short notification with the net pay instead.

Gigs app on Oxide Phone

If you run Oxide Phone, its Gigs app works with this job on its own — nothing to set up. Players can see the tow yards (and whether each one has room), their current call, and their level. While a player carries an Oxide Phone with the Gigs app on, shift messages and call rings arrive as Gigs notifications instead of texts. The pay summary at clock-out always arrives as a text or mail.

Shift summary mode

Shift summary style controls how the end-of-shift pay breakdown is delivered:

  • Phone message: sent to the player's phone as a text, or as mail on phones that don't take texts (default). With Use phone messages off, a short net-pay notification instead
  • Popup summary: shown on screen at clock-out, with either shift menu style. A shift that ends any other way still sends the summary as a message

Shift menu style controls what the shift menu looks like:

  • Custom UI: the full custom menu with a camera view of the tow yard (default)
  • Context menu: a simple text menu — use this if you prefer something lightweight

Uniforms

Work uniforms are off by default. To turn them on, enable Uniforms in /roadside settings (Presentation → Uniforms).

When enabled, players get a button in the shift menu to put on a roadside uniform while clocked in. Their own clothes are restored when they take it off, clock out, get hospitalized, log out, or disconnect. The outfit pieces are edited in the same settings group — the shipped values are placeholders, so set them to clothing IDs that fit your server.

Admin permission

The /roadside settings command requires admin permission. On QBCore, Qbox and ESX your existing admins can use it right away. Otherwise, add these two lines to your server.cfg (replace the license with the admin's own):

server.cfg
add_principal identifier.license:YOUR_LICENSE_HERE group.admin
add_ace group.admin admin allow

See Admin Tools for details.

Notes for UI Developers

The ready-to-use web/dist build is already included, so there is nothing to build or install for the menus to work.

Updating to 1.7.2

No SQL to run. An edited or translated locales/en.json keeps working, and lines added in this version (the solo-shift message and the account names) show in English until you add them. To show the account name in the phone pay summary, copy summary.net_pay and the account.* lines from the new file into yours.

Updating to 1.7.0

No SQL or configuration changes are required: the job creates the new shared job_pending_payouts table on its own the first time it starts. Restart oxide-roadsideassistancejob after updating. The Oxide HUD panels need o-link 1.12.1 or newer; without Oxide HUD nothing changes.

Next Steps