Installation
Start this after ox_lib, your framework, your inventory, and Newb_Bridge. The bridge auto-detects running resources; if this script starts first, detection can miss them. Keep the folder named MrNewbCityHall.
Dependencies
Newb_Bridge, ox_lib, your framework (jobs, bank money, name / DOB), and target via the bridge. Server artifact /server:6116 or newer, plus OneSync (fxmanifest.lua). oxmysql is not required.
Optional ID resources (checked at purchase time, first match wins):
um-idcardstarted →CreateMetaLicense(src, Config.IdCardItem)(defaultid_card)- Else
bl_idcardstarted →createLicense(src, Config.IdCardItem) - Else
bridge.inventory.addItemConfig.IdCardItemwith name + DOB metadata
Items
This resource does not ship [INSTALL]/ item defs or images. If you use the fallback path, add id_card to your inventory yourself (or start um-idcard / bl_idcard before CityHall).
Configure
| File | Contents |
|---|---|
configs/cityhall.lua | Config.AvailableJobs (shipped: bus / taxi at grade 0; police / sheriff / ambulance / mechanic are commented), Config.IdCardPrice (100, bank only), Config.IdCardItem (id_card), Config.InteractDistance (5.0), Config.ApplicationCooldown (60), one desk 'Job Center' |
configs/applications.lua | Config.Applications — shipped police and mechanic. Only question and required are read; type is unused |
configs/webhooks.lua | Server-only. Per-job Discord URLs. Empty string = submit rejected (application still listed) |
Labels: locales/en.json (this resource ships English only).
Add to server.cfg
Swap qbx_core / ox_inventory for whatever you actually run. If you use um-idcard or bl_idcard, ensure that resource before CityHall.
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure Newb_Bridge
ensure MrNewbCityHallRestart the server
Restart after config or locale changes. No admin commands and no exports. Review applications on the Discord webhook you configured.