np_entertainment
The whole night at a club, a bar or a festival field. Venues in their own routing bucket with a configurable GTA:O nightclub, a DJ booth whose decks play on synced np_screens speakers, lights, a stage and a sound system with mics, then tickets, promoters and an Events app in np_phone. Any job can get the parts it needs.
- Version
- 0.1.0
- Frameworks
- ESX first, qbx, qb, standalone
- Dependencies
- oxmysql; np_screens with audio channels for music
- Jobs
- An ent.* feature pack for np_jobs, optional for now with a fallback config
- Inventory
- np_inventory first (items registered at runtime), then ox_inventory or qb-inventory
- Voice
- pma-voice, YACA, SaltyChat (range only)
- Staff
- np_admin settings and audit log. No ACE
- Optional
- np_security, np_phone, np_faction, np_payments, np_prophandler, np_doors and more
- Languages
- English, German

Rendered from the NUI in the browser at 1920×1080 with mock data. Two concept renders show np_jobs and the np_security door. Phone shots are cropped to the device.
What's in it
The server owns every deck, cue, mic and ticket. Clients play what they hear and draw what they see.
DJ booth
- Two decks on synced np_screens audio channels, BPM, sync and tap tempo.
- A crossfade that lands at the same instant for everyone, a queue, hot cues, FX pads and visuals.
- Song requests and tips from the Events app, refunded when declined.
Sound system
- Wireless, headset, stand and lectern mics paired to mixer inputs.
- Routing to speaker groups, scenes, delay towers and a mobile PA kit.
- Voice bridges for pma-voice, YACA and SaltyChat (range only).
Lights and stage
- Presets, fixtures and a 16-step cue grid on the live beat clock.
- A server strobe cap and reduce flashing for each player.
- Running order, follow spot, stage props, pyro, hype and tips.
Venues and interiors
- Several clubs on one GTA:O nightclub interior through routing buckets.
- An IPL and entity-set configurator, other interiors and MLOs too.
- A venue editor for props and zones, and an NPC crowd.
Events and tickets
- Tiers, lineup, capacity and age limit, publishing to app, boards and Discord.
- Tickets as unique items with a database row that decides entry.
- Refunds, resale and a box office; np_security runs the door.
Promoters
- Codes with buyer discounts per event or venue.
- Commission held until the event ends, reversed on refunds.
- Flyers in the world and single-event grants.
Events app
- Tonight, the feed and checkout with a promo code in np_phone.
- A ticket wallet with the QR, song requests and tips.
- A promoter page with codes, sales and commission.
Jobs, staff and scripts
- Fourteen ent.* features for any job; np_jobs optional with a fallback config. No hardcoded job names.
- np_admin settings and audit log. No ACE.
- Exports, an np_addon host with eight registries, veto hooks and events. English and German.
A closer look
Two decks on synced speakers
Each deck is an np_screens audio channel on the venue's speakers, so everybody in the club hears the same second of the track.

- Decks: load, play, cue, seek, per-deck volume, BPM from the track, tap tempo and sync.
- Crossfade as two synced volume ramps that land at the same instant on every client; phrase sync starts the next deck on the bar.
- Queue per deck, hot cues saved per DJ and track, FX pads with a cooldown, visuals on the club screens.
- Requests: anyone requests a song with a tip from the Events app. Declined or expired requests refund the tip, played ones pay the DJ minus the venue cut.
- Sources: YouTube, audio files and allow-listed streams, capped by the job's maxVolume.
One mixer for a bar, a club and a festival
Music and voices go through the same desk and come out of the same speakers.

- Mics as items: wireless, headset, stand and lectern, paired to a mixer input. Speaking into a handed mic needs no job.
- Sound desk: faders, mutes, voice FX, routing to main, delay, monitor, backstage, outdoor and broadcast groups, a master and scenes.
- Voices travel to the routed speakers: louder near a speaker, never through phone or radio channels. pma-voice and YACA with per-listener gain, SaltyChat range only.
- Mobile PA: a PA kit item deploys a stack, a sub and a mic stand for street parties, weddings and festival stages, and packs itself after a timeout.
- Megaphone that needs no mixer, hold N to talk.
Lights on the beat, a stage that runs itself
The light desk follows the live deck's beat clock; the stage manager follows the lineup.

- Fixtures: movers, lasers, smoke, strobe and spot, presets with a palette and a 16-step cue grid.
- Beat source: the live deck, tap tempo or a fixed BPM. Clients derive the phase locally, the server only sends cue changes.
- Safety: a server strobe cap and a per-player reduce-flashing switch.
- Stage: running order, a follow spot on auto or manual, stage props from an allowlist and pyro only where the server allows it.
- Performers: the mic opens with the set, hype the crowd with an np_minigames skill check, take tips from the audience.
Several clubs on one interior
Each venue has its own routing bucket and interior profile, so the Galaxy and the next club down the road can both use the GTA:O nightclub and look different.

- Routing buckets: entering moves you into the club's bucket and applies its profile behind a fade; leaving restores your bucket.
- Configurator: club sign, style, podium, DJ booth, light rig, dry ice, trophies, screens and three colours, previewed in a private bucket.
- Other interiors: Bahama Mamas, the Music Locker, MLOs or an outdoor stage; other resources register interior families.
- Venue editor: booth, fixtures, speakers, mic stands and screens through np_prophandler, zones as polygons, an NPC crowd.
Tickets the database trusts
A ticket is an item; the ticket row decides entry, so a copied item gets nobody in.

- Events: tiers with perks and wristband tiers, lineup slots that grant guest performers the stage, capacity and age limit, publishing to the app, boards, a blip and Discord.
- Tickets: unique items with an HMAC code for the QR, refunds by payment reference, resale through the app with a venue fee, a box office.
- Door: np_security runs it with tickets as an admission provider; without it a fallback door checks tickets, age and capacity.
- Promoters: codes with buyer discounts, commission held until the event ends, flyers on walls, single-event grants.
The Events app
A store app in np_phone. Without the phone, tickets still work as items at the door.


- Tonight and upcoming events with posters, filters and bookmarks.
- Checkout with tiers and a promo code checked live, paid through np_payments.
- Wallet: tickets with their QR, show it to the door staff, resell or refund.
- At the venue: request a song with a tip, tip the performer on stage.
- Promoters: codes, sales and commission, and sharing a code with contacts.
A feature pack for any job
np_entertainment never names a job. It ships fourteen ent.* features, and the server decides who gets which.

- Resident DJ: ent.dj and ent.dj.requests at their club, ent.lights with presets for the higher grades.
- Club owner: every ent.* feature at their venues; finance, promoter management and the interior only for the top grades.
- Sound engineer: ent.audio at any stage and ent.audio.rig in the festival zones.
- Promoter and performer as minijobs, or a grant for one night.
- np_jobs optional for now: without it a fallback config maps framework jobs to features, with a minimum grade and venues.
With the np_* stack
oxmysql is the only hard dependency, np_screens is needed for music. Every other sibling is detected at start and has a fallback.
| Resource | What it does with np_entertainment |
|---|---|
| np_screens | Audio channels for the decks, FX and the music bus (required for music); visuals and posters on boards |
| np_jobs | Hosts the ent.* feature pack; optional for now, with a fallback config |
| np_security | The door: ID, lists, bans, wristbands and capacity, with tickets as an admission provider; a fallback door without it |
| np_faction | Venues as faction places, duty for duty features |
| np_payments, np_banking | Checkout with payee splits, tips, refunds by reference; commission and fee payouts |
| np_phone | The Events app, News and Yellow Pages publishing |
| np_prophandler, np_colshape | Booth, fixtures, speakers and stage props; venue, VIP, stage and door zones |
| np_doors, np_identification | VIP and backstage doors on wristband tiers; the age at the fallback door |
| np_npchandler, np_minigames | The NPC crowd; the hype skill check |
| pma-voice, YACA, SaltyChat | The voice bridge for mics; SaltyChat range only |
| np_admin | The Entertainment settings page, the audit log, staff actions and the server theme |
Set it up
Installation
oxmysql first, np_screens for music. np_jobs, np_screens and np_security can restart in any order: np_entertainment re-attaches to them.
- Put the resource in
resources/asnp_entertainmentand start it after its dependencies:set ent_ticket_secret "a-long-random-string" 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_screens # music: audio channels ensure np_jobs # optional: hosts the ent pack ensure np_security # optional: the door ensure np_entertainment - The tables are created on start and migrated on updates. Set
ent_ticket_secretas a server-only convar, or let np_entertainment generate one. - Items: nothing to do with np_inventory. On ox_inventory, qb-inventory or ESX add the templates from
shared/items.lua(tickets, flyers, drink tokens, mics, the megaphone, the mixer tablet and the PA kit). - Jobs: attach ent.* features in np_jobs, or fill
Config.JobFeatureswithout it. - Venues: add them to
Config.Venuesor place them in game with the venue editor, then pick an interior profile. - The NUI ships prebuilt in releases. To build it from source:
cd web && npm ci && npm run build
For your own scripts
Server exports for venues and events, an np_addon host with eight registries, veto hooks and events.
-- a taxi script drops passengers inside the club they booked
exports.np_entertainment:enterVenue(src, 'galaxy_main')
-- the Music Locker in the interior configurator
npAddon.attach('np_entertainment', function()
exports.np_entertainment:registerInteriorFamily('music_locker', { label = 'Music Locker', sets = { … } })
end, { api = 1 })
-- no mobile PAs during quiet hours
exports.np_entertainment:addHook('beforeRigDeploy', function(src, rig)
if IsQuietHours() then return false, 'quiet_hours' end
end)
AddEventHandler('np_entertainment:event:started', function(eventId, venueId)
print(('event %d is live at %s'):format(eventId, venueId))
end) Registries: publish targets, interior families, fixture types, speaker models, stage props, ticket perks, venue providers and voice bridges. Hooks: beforeTicketIssue, beforeRequest, beforeMicOpen, beforeRigDeploy and more.
Questions
Does it need np_jobs?
Not for now. With np_jobs running, the ent.* features are attached to jobs there. Without it, Config.JobFeatures maps framework jobs to features with a minimum grade and a venue list. Either way np_entertainment never reads a job name in its code.
Does it need np_screens?
For music, yes: the decks, FX pads and the music bus play on np_screens audio channels so every listener hears the same position. Events, tickets, the door, lights and mics work without it.
Can several clubs share the GTA:O nightclub?
Yes. Each venue has its own routing bucket and interior profile, so two clubs on the same interior have their own sign, style, lights, music and crowd.
Which voice resources work?
pma-voice and YACA get the full mic system, louder near the speakers. SaltyChat has no per-listener gain API, so it is range only: the talker's range widens while the mic is live.
What if a ticket item is copied?
It gets nobody in. The QR is drawn from an HMAC code, but the ticket row in the database decides entry and counts the entries left.
Who runs the door?
np_security, with tickets as an admission provider next to ID, lists and bans. Without np_security, a fallback door for staff with the box office feature checks tickets, age and capacity.
Has it run on a live server yet?
Not yet. Version 0.1.0 is covered by Lua behaviour and contract tests and by NUI screenshots with mock data.
Is it in German?
English and German.
Works well with

Open the doors, drop the needle.
Installation, every feature and every export are in the docs.