Commands#
| Command | Who | What it does |
|---|---|---|
/manualmode |
Admins and founders | Toggles the manual gearbox on the car you are driving, and saves it for owned cars. The name is Config.Manual.command; set it to false to remove the command. |
/wheelsetup |
Players, when wheel support is on | Opens wheel setup and calibration. The name is Config.Wheel.command. |
Everything else is in the hub, opened from the VR spot, the headset item or the exports below. Staff lobby tools are in the full hub under Lobbies.
Client exports#
| Export | Description |
|---|---|
OpenHub(tab) |
Opens the hub on a tab. |
OpenVRHub() |
Opens the hub in VR mode, with the same checks as the VR spot. |
OpenFullHub() |
Opens the full hub (staff). |
OpenFromArcade() |
Opens the hub in VR mode. Used by glitch-arcade. |
IsRacing() |
true while the local player is in a race. |
IsInCreator() |
true in a stunt or street creator. |
SetManualLocal(veh, on) |
Turns the manual gearbox on for a vehicle on this client. |
IsManual(veh) |
Whether the vehicle (default: the current one) is manual. |
GetManualGear() |
The current gear label, or nil when not manual. |
OpenWheelSetup() |
Opens the wheel setup page. |
GetWheel() |
Current wheel state. |
local racing = exports['glitch-racing']:IsRacing()
Server exports#
| Export | Description |
|---|---|
SetVehicleManual(netId, on) |
Sets the manual gearbox on a vehicle for this spawn. Not saved. |
SetFittedTransmission(veh, mode) |
veh is a server entity and mode is 'manual' or 'auto'. Saved like /manualmode. Returns false when the entity does not exist. |
IsFittedManual(veh) |
Whether the vehicle has a manual gearbox, saved or active. |
IsVehicleManual(netId) |
Whether the vehicle's glitchManual state bag is set. |
ArcadeKick(src) |
Removes a player from a waiting lobby when they leave an arcade zone. Used by glitch-arcade. |
State bags#
| State bag | Meaning |
|---|---|
glitchManual |
Set on a vehicle when its gearbox is manual. |
glitchStereo |
Set on race cars when glitch-audioProps is enabled in Config.Integrations, so they get a Smart Radio. |
Events#
| Event | Side | Description |
|---|---|---|
glitch-racing:cl:openHub |
Client | Sent by the server when the headset item is used. Opens the hub. |
All other glitch-racing:sv:* and glitch-racing:cl:* events and callbacks carry the race, creator, hub and phone app traffic. They validate the sender and are not a public API.
Database tables#
glitch_racing_tracks, glitch_racing_profiles, glitch_racing_results, glitch_racing_records, glitch_racing_manual, glitch_racing_creator_access and glitch_racing_pending.
Credits#
The race and creator engine is based on taoletsgo/custom_races v5.0.0, which is public domain. See LICENSE-custom_races.txt in the package.
Stuck on a step?Ask in the Discord →