Commands#
| Command | Who | What it does |
|---|---|---|
/truckreset |
Admins with the command.truckreset ACE permission (group.admin) |
Fails the current run for everyone and clears it. |
Client exports#
The package registers no client exports.
Server exports#
| Export signature | Implementation in your package |
|---|---|
GetTabletPlaces() |
server/tablet_places.lua |
GetTabletPlaces() returns the pickup and insider places for the tablet map. glitch-criminaltablet reads it; you do not need to call it.
Events the resource listens to#
The resource handles these events from other resources. They are not meant to be triggered by your own scripts.
| Event | From | What it does |
|---|---|---|
glitch_criminaltablet:lineupStarted |
glitch-criminaltablet (server) | Starts the run when the crew presses Start on the truck contract. |
glitch-truckRobbery:payphone |
sd-phone (server) | Registered as the payphone line event. Fires when a crew member dials the run's number from a booth. |
Exports the resource calls#
These are optional and wrapped in pcall, so a missing resource or export never stops a run.
| Resource | Exports |
|---|---|
| glitch-criminaltablet | GetJobConfig, GetCrew, GetCrewSources, GetLineup, CheckJobGate, TakeHeistSlot, ReleaseHeistSlot, RegisterContractLocations, ClaimPickupContract, UnlockPlace, FailHeist, LogEvent, HasAdminBypass and a few more |
| glitch-xpSystem | AddPlayerXP, GetPlayerLevel, GetEffect |
| glitch-crafting | RollComponents, RollCache |
| glitch-uiElements | ShowTaskList, HideTaskList, FinishTaskList |
| sd-phone | RegisterPayphoneLine, RemovePayphoneLine, getPhoneNumber, sendSystemMessage, sendLocation |
| glitch-admin | Log |
| glitch-economy | LogCrime |
Internal callbacks#
Callbacks and net events prefixed with glitch-truckRobbery: (start, plant, loot, grab, search and the like) are part of the validated job flow. They are not a public API, and the server rejects calls that do not match the current run. The job state is published to clients in the gtr:job global state for the on-screen task list; treat it as read-only.
Stuck on a step?Ask in the Discord →