Commands#
Command
Who
What
/mechanicadmin
ACE command.mechanicadmin or glitch-admin panel_mechanicjob
Opens the admin panel
mechaniccheck
Server console only
Prints the diagnostics report, the same one as the Diagnostics button in the panel
/mechanicvolume 0-100
Everyone
Turbo and blow-off volume for yourself
/tunertablet
Driver or front passenger
Opens the Tuner tablet in a car with Tuner mods
Key mappings: mechanic_workshop (Y), mechanic_customise (U), mechanic_dyno (O), tunertablet (F7), +tunernitro (Left Shift), +tunerpurge (G) and +tunerdrift (Left Ctrl).
Server exports#
Export signature
What it does
GetBuild(plate)
Returns the build table of a car
GetResaleValue(plate)
Returns the resale value of the parts on a car
InspectVehicle(plate, observation)
Returns a list of illegal modification flags. observation can hold tint, neon, moving and missingPlate.
ShopFitsPart(shopId, item)
Whether a shop's speciality fits a part or supply (crafting hook)
CanCraftPart(src, item)
Whether a player at a shop bench can craft an item (crafting hook)
CraftedMetadata(cid, item)
Item metadata for a crafted part, with quality from the crafter's level (crafting hook)
AwardCraftXP(src, amount, item)
Gives Mechanic XP for crafting (crafting hook)
AdminSetAddon(src, veh, item, on)
Fits or removes a Tuner mod, engine sound or turbo sounds from an admin tool
RunDiagnostics()
Runs the mechaniccheck report
BusinessTabletCall(src, businessId, page, action, data)
Entry point for the glitch-businesstablet app
Client exports#
Export signature
What it does
OrderLocks(build, hex, data)
Parts on a customiser order that nobody on duty can fit yet, with the order total (used by glitch-mechanicMenu)
AdminAddons(veh)
Admin tool list of Tuner mods and sound options for a car
PickEngineSound(veh, current)
Opens the engine sound picker
PickTurboSounds(veh, current, item)
Opens the turbo sound picker
RestoreEngineSound(veh)
Puts the car's fitted engine sound back after a preview
CarHasUnderglow(veh)
Whether the car has an RGB neon kit
OpenUnderglow()
Opens the underglow controls
Events and state bags#
Name
Side
What it is
glitch-mechanicJob:order
Client, local event
glitch-mechanicMenu sends the finished customiser build here to open the order review
glitchBuild
Entity state bag
The car's build, without server-only fields
harness
Player state
Set while you sit in a car with a racing harness. glitch-hud treats it as a seatbelt.
Callbacks# Callbacks are registered as glitch-mechanic:<name> through ox_lib and serve this resource's own screens. Each one checks job, duty, distance and permissions and has a per-player rate limit. They are not a public API. Use the exports above from other resources.
← Previous Troubleshooting Next → Optional Resources