Configuration ​
Configuration lives in shared/config/. Each file is registered with np_admin (np_admin_config), so staff can read
it in game; the live settings below change without a restart.
| File | Holds |
|---|---|
shared/config/00_core.lua |
Config.Framework, Config.Voice, Config.Settings (the np_admin settings page) |
shared/config/features.lua |
Config.Features (the ent.* catalogue and its schemas), Config.JobFeatures (the fallback map) |
shared/config/venues.lua |
Config.Venues, Config.VenueSettings, Config.InteriorFamilies |
shared/config/music.lua |
Config.Music: requests, queue, FX pads, rigs, megaphone, stream hosts, voice range |
shared/config/show.lua |
Config.Show: cue grid, smoke, pyro and hype cooldowns, the vibe meter |
shared/config/events.lua |
Config.Events: the fallback door, flyer zones, resale fee and cap |
Core ​
Config.Framework = 'auto' -- 'esx' | 'qbx' | 'qb' | 'standalone'
Config.Voice = 'auto' -- 'pma-voice' | 'saltychat' | 'yaca-voice'
Settings (np_admin) ​
Config.Settings is the Entertainment page in np_admin's settings (lilac tile), in three categories:
| Key | Category | Default | Applies | |
|---|---|---|---|---|
strobeMaxHz |
Safety | 6 |
live | Server cap for strobes; a feature's strobeMaxHz can only go lower |
allowPyro |
Safety | false |
live | Pyro on stage at all (the pyro feature field decides who) |
maxRigs |
Limits | 4 |
live | Mobile PAs deployed at once |
maxSpeakersPerRig |
Limits | 12 |
live | Speakers per mobile PA |
crowdDensity |
Limits | 0.35 |
live | NPC crowd density (0 to 1) |
autoRegisterItems |
Limits | true |
restart | Register the items with np_inventory at runtime |
urlSources |
Media | youtube, file, stream |
live | Music sources the booth and requests accept |
voiceResource |
Media | auto |
restart | auto, pma-voice, saltychat or yaca-voice |
Without np_admin the values in 00_core.lua apply.
Voice resource ​
voiceResource = 'auto' takes the first started one of pma-voice, saltychat and yaca-voice. Name one to
force it; if it is not started, the voice bridge stays off and mics are silent. SaltyChat works range only
(Sound system).
Ticket secret ​
Ticket codes are an HMAC over ticketId|eventId|tier. Set the secret as a server-only convar:
set ent_ticket_secret "a-long-random-string"
Use set, never setr. Without the convar np_entertainment generates a random secret once and keeps it in the
ent_secrets table. The code only draws the QR; the ent_tickets row decides entry.
Features without np_jobs ​
With np_jobs running, features are attached to jobs there, and NpEnt.can asks np_jobs:hasFeature. np_jobs is
optional for now: without it, Config.JobFeatures maps framework jobs to features. A feature's config is its
schema fields (Feature catalogue) plus two fallback-only keys:
| Key | |
|---|---|
minGrade |
Lowest framework grade that holds the feature |
places / venues |
Venue ids where it applies; 'any' for all |
Config.JobFeatures = {
galaxy = {
['ent.dj'] = { venues = { 'galaxy_main' }, sources = { 'youtube', 'file' }, maxVolume = 0.9 },
['ent.dj.requests'] = { minTip = 20, venueCut = 0.2 },
['ent.lights'] = { venues = { 'galaxy_main' }, fixtures = { 'movers', 'lasers' } },
['ent.tickets.sell'] = { venues = { 'galaxy_main' } },
['ent.events'] = { minGrade = 3, venues = { 'galaxy_main' }, maxCapacity = 400 },
['ent.venue.setup'] = { minGrade = 4, venues = { 'galaxy_main' } },
},
}
Access resolves in this order:
- Temporary grants for the character (for example a guest performer's
ent.stage.performfor the slot window). Place-scoped grants must match the venue. - np_jobs
hasFeature(src, feature, { duty, place })when it runs. - The fallback map above: the framework job,
minGrade, the venue list and the feature's config. - Duty for features with
duty = 'required': np_faction'sIsOnDutywhere it runs, else the framework's duty.
Denials come back as stable codes: unknown, no_job, no_feature, grade, place, off_duty (np_jobs codes are
passed through).
Venues ​
Config.VenueSettings = {
entranceDistance = 3.0, leaveDistance = 8.0, promptDistance = 2.0,
defaultBucket = 0, defaultCapacity = 500, maxProps = 100,
allowedModels = { 'prop_dj_deck_01', 'prop_speaker_05', 'prop_speaker_06', 'prop_mic_01', 'prop_tv_flat_01', 'prop_stage_01', 'prop_stage_02' },
allowedKinds = { 'booth', 'fixture', 'speaker', 'micStand', 'screen', 'stageProp' },
builtInInteriorFamily = 'ba_dlc_int_01_ba',
}
Venue rows and interior families are described on Venues & interiors.
Music ​
| Key | Default | |
|---|---|---|
requestCooldown |
60 |
Seconds between song requests per player |
requestExpiryMinutes |
10 |
Pending requests expire and refund their tip |
maxPendingPerPlayer |
3 |
Open requests per player |
maxQueue |
25 |
Queue length per deck |
fxPads |
kick, airhorn | { url, label, durationMs } per pad; only configured samples play |
fxPadCooldownMs |
3000 |
Per player |
streamHosts |
{} |
Hosts allowed for the stream source |
rigTimeout |
3600 |
Seconds until a mobile PA packs itself |
maxRigs / rigRange / rigSpeakers |
8 / 60 / 10 |
Rig defaults |
megaphoneRange / megaphoneNormalRange |
35.0 / 8.0 |
Voice range with the megaphone up and after release |
micZoneRadius |
1.25 |
Pickup zone of a mic stand or lectern |
voiceRangeMax |
60.0 |
Upper bound for a widened talker range |
Show ​
Config.Show: cuesPerPreset = 16, smokeCooldownMs = 4000, pyroCooldownMs = 10000, hypeCooldownMs = 30000,
defaultBeatBpm = 120, maxPresetLabel = 24, and the vibe meter (vibeTipMultiplier, vibeDecayPerSecond,
vibeCap, vibeTipCap).
Events ​
| Key | Default | |
|---|---|---|
door.fallbackFeature |
'ent.tickets.sell' |
Feature of the staff who run the fallback door |
door.allowUnknownAge |
false |
Admit when the age can't be read (no np_identification) |
adminCap |
5000 |
Cap for staff-issued amounts |
resaleFee |
0.10 |
Venue share of an app resale |
maxResale |
5000 |
Highest resale price |
flyerZones |
{} |
{ id, label, venueId, polygon = { {x,y,z}, … }, radius, cap } |
flyerModel |
'prop_flyer_01' |
Wall flyer prop |