Commands#
| Command | Who | What |
|---|---|---|
/resetelectricaljob |
Everyone | Resets the player's own call and asks the server for it again. Set by config.resetCommand; false removes it. |
The van also has a Reset Job Call target option that does the same.
Exports#
There are no client or server exports.
Net events and callbacks#
If your anticheat keeps an allow list of net events, these are the ones players send:
| Kind | Names |
|---|---|
| Server net events | glitch-electricalJob:server:fine, release, releaseAll, placed, poleFixed, atmDone, specialEvent, paySpecialBonus |
| Server callbacks (ox_lib) | glitch-electricalJob:server:takeDeposit, returnDeposit, requestCall, claim, repairFailed, payJob |
| Client callback (ox_lib) | glitch-electricalJob:client:confirmGroupShift, the join prompt for group shifts |
Every one of them is rate limited per player and checked on the server. They belong to the job flow and are not meant to be called by other resources.
What the job calls in other resources#
These are the contracts to match if you swap in your own resource:
| Resource | What is used |
|---|---|
| glitch-abstraction | getAbstraction() for framework, money, inventory, notifications, progress bars and progression (GetLevel, AddXP) |
| glitch-minigames | StartCircuitBreaker, StartCircleClickGame, StartBarHitGame, StartSkillCheckGame |
| glitch-xpSystem | GetEffect, UseDaily, CanUseDaily, SetAura for the perks |
| sd-phone | getActiveGroup(source) for crews |
| glitch-uiElements | ShowTaskList, UpdateTaskList, FinishTaskList, HideTaskList |
config.Logging.resource |
Log(entry), see Examples |
| qbx_vehiclekeys | GiveKeys, SetLockState |
| qb-vehiclekeys | Client event vehiclekeys:client:SetOwner |
| qbx_core | AddMoney when config.payReason is a string, and for deposit refunds |
| rpemotes | EmoteCommandStart('stunned'), EmoteCancel() |
| glitch-pauseMenu | Client events glitch-pauseMenu:legend:name and glitch-pauseMenu:legend:request |
Stuck on a step?Ask in the Discord →