Skip to Content
Cobalt

cobalt_cityhall

The job center, license cards and the driving tests.

GetShift

Server

The player's shift at a civilian job, or nil when they have none.

exports.cobalt_cityhall:GetShift(src)
ParameterTypeOptionalDescription
srcintegerNo
ReturnsDescription
ShiftView?
Example
local view = exports.cobalt_cityhall:GetShift(source)

EndShift

Server

Ends the player's shift and clears their temp job; false when they had no shift.

exports.cobalt_cityhall:EndShift(src, reason)
ParameterTypeOptionalDescription
srcintegerNo
reasonstringYesshown to the player
ReturnsDescription
boolean
Example
local ok = exports.cobalt_cityhall:EndShift(source, 'Parking in a red zone')

UseHotdogStand

Client

cobalt_inventory's use handler for the hotdog_stand item: on usedItem, starts placing the cart.

exports.cobalt_cityhall:UseHotdogStand(event)
ParameterTypeOptionalDescription
event'usingItem' | 'usedItem'No
Example
exports.cobalt_cityhall:UseHotdogStand('usingItem')

On this page