cobalt_cityhall
The job center, license cards and the driving tests.
GetShift
ServerThe player's shift at a civilian job, or nil when they have none.
exports.cobalt_cityhall:GetShift(src)| Parameter | Type | Optional | Description |
|---|---|---|---|
src | integer | No |
| Returns | Description |
|---|---|
ShiftView? |
local view = exports.cobalt_cityhall:GetShift(source)EndShift
ServerEnds the player's shift and clears their temp job; false when they had no shift.
exports.cobalt_cityhall:EndShift(src, reason)| Parameter | Type | Optional | Description |
|---|---|---|---|
src | integer | No | |
reason | string | Yes | shown to the player |
| Returns | Description |
|---|---|
boolean |
local ok = exports.cobalt_cityhall:EndShift(source, 'Parking in a red zone')UseHotdogStand
Clientcobalt_inventory's use handler for the hotdog_stand item: on usedItem, starts placing the cart.
exports.cobalt_cityhall:UseHotdogStand(event)| Parameter | Type | Optional | Description |
|---|---|---|---|
event | 'usingItem' | 'usedItem' | No |
exports.cobalt_cityhall:UseHotdogStand('usingItem')