Skip to content

Venues & interiors ​

A venue is an np_entertainment record bound to an np_faction place (and, for the door, an np_security site): its routing bucket, its interior profile, entrances, zones (floor, VIP, stage, booth, bar, door), fixtures, speakers, mics, boards and NPC crowd settings.

Defining venues ​

Venues come from three places: Config.Venues, the in-game venue editor (stored in ent_venues), and venue providers other resources register (registerVenueProvider, for example house parties). Config rows are inserted once and never overwrite what staff changed in game.

lua
Config.Venues = {
  galaxy_main = {
    label = 'Galaxy', faction = 'galaxy', place = 'galaxy_club',
    bucket = 101,                       -- its own routing bucket on the shared nightclub interior
    family = 'ba_dlc_int_01_ba', profile = 'galaxy_glam',
    capacity = 400,
    entrances = { { coords = vec3(355.2, 301.8, 103.8) } },
    zones = {
      { id = 'door', kind = 'door', coords = vec3(355.2, 301.8, 103.8), radius = 2.0 },
      { id = 'vip', kind = 'vip', polygon = { … } },
    },
  },
}

Routing buckets ​

Several clubs can share the one GTA:O nightclub interior: each venue gets its own routing bucket. Entering (within entranceDistance of an entrance while the venue is open) moves the player into the venue's bucket and applies its interior profile while the screen is faded. Leaving restores the bucket they came from. np_entertainment:venue:entered and np_entertainment:venue:left fire on the server.

np_screens channels are per bucket already, so each club hears its own decks. Other venues use their own GTA interiors (Bahama Mamas, Tequi-la-la, Vanilla Unicorn, the Music Locker), streamed MLOs, or an outdoor area with no IPL part at all; they can stay in bucket 0.

Venue editor ​

Venue editor: speakers, fixtures and zones of the Galaxy, with crowd settings and the np_security link

ent.venue.setup opens the editor: place the booth, fixtures, speakers (with their group), mic stands, screens and stage props from Config.VenueSettings.allowedModels, draw zones as polygons in the world, set the NPC crowd and link the venue to its np_security site. Placement uses np_prophandler when it runs (local raycast and rotation controls otherwise); the server validates every position and polygon before saving to ent_venue_props and ent_venues. maxProps caps the props per venue.

The NPC crowd uses np_npchandler with the nightclub dance animations; its density follows crowdDensity, the tickets sold and the vibe meter.

Interior profiles: the nightclub configurator ​

Interior configurator: the GTA:O nightclub with club sign, style, DJ booth, light rig and extras

A profile describes how an interior looks for one venue: the entity sets that are on, their colours, IPLs to request or remove, and extras. On entering the venue's bucket, the client turns off every set the family knows, turns on the profile's sets, applies colours and refreshes the interior, all while faded. Profiles are cached and versioned; they are never applied per beat.

ent.venue.interior opens the configurator. The built-in family is the GTA:O nightclub (ba_dlc_int_01_ba):

Group Entity sets
Club sign Galaxy, Studio Los Santos, Omega, Technologie, Gefängnis, Maisonette, Tony's Fun House, The Palace, The Paradise (Int01_ba_clubname_01…09)
Style Traditional, Edgy, Glam (Int01_ba_Style01…03) with matching podiums
DJ booth Four variants (Int01_ba_dj01…04)
Light rig Droplets, neons, bands, lasers per booth (DJ_0x_Lights_0y), light grid, rigs off
Extras Dry ice, bar content and booze levels, trophies, clutter, work lamps, equipment and security upgrades, screens
Colours primary, secondary, tertiary

Preview applies a profile only for you, in a private bucket; ending the preview restores your bucket and the saved profile. Save stores the profile for the venue. The feature's profiles field lists the presets a job may pick; custom (perGrade) allows editing raw sets.

Other interiors join the configurator through registerInteriorFamily (Exports) or a profile file. Don't let another IPL loader (for example bob74_ipl's nightclub module) manage the same interior: disable it there.

Set names follow bob74_ipl's After Hours module; check them in game before you ship a custom profile.