Installation ​
Requirements ​
- oxmysql, the only hard dependency. The tables are created at start; versioned migrations are recorded in
ent_migrationsand applied on updates. - np_screens with its audio channels for music: the DJ decks, FX pads and the music bus of the sound system play on np_screens channels. Without it the booth opens, but no deck plays.
- Node.js 18+ once, to build the web UI, unless you use a release zip (it already contains
web/dist).
Optional, detected at start (each with a fallback, see Integrations):
| Kind | Resources | Without it |
|---|---|---|
| Framework | es_extended (first target), qbx_core, qb-core | Standalone identity, no jobs: only grants open features |
| Inventory | np_inventory (first target), ox_inventory, qb-inventory | No ticket, flyer or mic items |
| Jobs | np_jobs | The local feature map in shared/config/features.lua (Configuration) |
| Door | np_security | The fallback door with ent.tickets.sell (Tickets & the door) |
| Voice | pma-voice, saltychat, yaca-voice | Mics are silent; the megaphone and music still work |
| Other np_* siblings | np_faction, np_payments, np_banking, np_phone, np_prophandler, np_colshape, np_doors, np_identification, np_hud, np_menu, np_npchandler, np_minigames, np_cctv, np_discord, np_admin | A built-in fallback each |
Steps ​
- Put the folder into your resources as
np_entertainment. Items callnp_entertainment.useItemand np_phone loads the Events app fromnp_entertainment/web/dist/phone.html, so keep the name. - Build the web UI (skip this with a release zip):sh
cd np_entertainment/web && npm ci && npm run build - Start order in
server.cfg: after oxmysql, the framework, the inventory, the voice resource and the siblings you use.cfgnp_entertainment is an np_addon of np_jobs, np_screens and np_security: it re-attaches when one of them restarts, so the order between them does not matter.set ent_ticket_secret "a-long-random-string" # optional: signs ticket codes, see Configuration ensure oxmysql ensure es_extended # or qbx_core / qb-core ensure np_inventory # or ox_inventory / qb-inventory ensure pma-voice # or saltychat / yaca-voice ensure np_prophandler # booth, fixtures, speakers, mic stands, stage props ensure np_colshape # optional: venue zones ensure np_payments # optional: checkout, tips, refunds ensure np_banking # optional: payouts ensure np_admin # optional: settings, logs, staff actions ensure np_phone # optional: the Events app ensure np_faction # optional: venues as faction places, duty ensure np_screens # music: audio channels ensure np_jobs # optional: hosts the ent feature pack ensure np_security # optional: the door ensure np_entertainment - Items. Add the templates from
shared/items.lua(below). - Features. With np_jobs, attach
ent.*features to jobs there (Feature catalogue). Without it, fillConfig.JobFeatures(Configuration). - Venues. Add your venues to
Config.Venuesor create them in game with the venue editor (Venues & interiors). - Start the server, enter a venue and open the booth, or run
/planneras a player withent.events.
Items ​
Item templates ship in shared/items.lua in a neutral format (name, label, weight, stack, close, description,
image, server.export, client.event). The manifest declares them with np_items 'shared/items.lua', so np_admin can
later offer to insert them into the framework's item table.
| Item | Use |
|---|---|
ent_ticket |
Event ticket, one per entry, unique metadata, never stacks (Tickets) |
ent_flyer |
Promoter flyer: event and code (Promoters) |
ent_drink_token |
Tier perk, redeemed at a participating bar |
ent_mic_wireless, ent_mic_headset |
Paired to a mixer input ({ venue, input }) |
ent_mic_stand, ent_mic_lectern |
Placeable mic with a pickup zone |
ent_megaphone |
Standalone loud voice, no mixer |
ent_mixer_tablet |
Portable sound desk (ent.audio) |
ent_pa_kit |
Mobile PA (ent.audio.rig) |
ent_speaker_portable |
Small party speaker (not usable yet) |
- np_inventory: with
autoRegisterItemson (default) np_entertainment registers the items at runtime. - ESX without np_inventory, ox_inventory, qb-inventory: add the items from
shared/items.luato your item list yourself, withnp_entertainment.useItemas the server export where the inventory supports it.
The wristband item belongs to np_security, not to np_entertainment.