Skip to main content
Open the PC from your own scripts, such as a laptop item, a phone app or an admin menu.
Paid and state-changing actions only work near a City Hall (Config.Security.location). To open the PC somewhere else, use the server export openCityHall, or set location.enabled = false.

OpenCityHall

Opens the City Hall PC for the local player.

CloseCityHall

Closes the PC if it is open.

IsCityHallOpen

Returns whether the PC is open.

getTaxAmount

Calculates the tax for an amount, using a rate path from Config.Taxes (same as vms_cityhall).

Events

aps_cityhall:open

Opens the PC, the same as OpenCityHall().
Set Config.Features.npc = false if players should only reach the PC through your own script.