Skip to content

Cinema mode & showtimes ​

Any surface can run as a cinema. A cinema has showtimes that start by themselves, an audience request queue with upvotes, vote to skip, and optional tickets that gate the sound. Players use it from the Cinema tab of the remote.

The cinema tab for staff (left) and the audience (right): tonight's showtimes, audience requests, vote to skip and tickets

A surface becomes a cinema when it is listed in Config.Cinema.surfaces or has saved cinema settings (written by staff from the remote tab or the Surface manager). Saved settings win field by field over the config file, which wins over Config.Cinema.defaults.

The audience ​

Players within the audience range (viewerRange, by default the surface's draw radius) see:

  • Tonight's showtimes: the blocks of the day, the running one with a progress bar, ended ones greyed out.
  • Audience requests: paste a YouTube or video link to request it. Others upvote requests. You can cancel your own. One request per requestCooldownSec per screen, at most maxRequests open per screen, and unhandled requests are dropped after requestTtlSec.
  • Vote to skip: the current video is skipped when ratio (60 %) of the audience voted, with at least minVotes (3) votes.
  • Ticket: on a ticket-gated cinema, players without a ticket see the picture but hear nothing. Buy ticket charges the price and the ticket is valid for validMinutes.

The audience view of the cinema tab

Staff ​

Cinema staff are players with np_screens.admin, np_screens.cinema, or a job listed in the cinema's staffJobs (job name and minimum grade, and on duty). Staff see the same tab with more controls:

  • Approve or deny requests. An approved request goes into the playback queue.
  • Start a showtime block now.
  • Toggle vote to skip and ticket required.

Showtime blocks are edited by admins in the Surface manager's Schedule tab.

Showtimes ​

The schedule of a cinema in the Surface manager: a week of blocks, cinema settings and the emergency broadcast

A block has a weekday (or daily), a start time (HH:MM, server local time), a duration, a label and either a link or a playlist. Blocks of the same screen can't overlap.

  • Blocks fire on the server, aligned to the minute, whether or not anyone is nearby.
  • A block whose start was missed (a restart, an emergency broadcast) still starts if it began at most schedule.catchUpMinutes ago.
  • Manual control from the remote (transport, setting a link, an approved request) pauses the schedule until the next block starts. The running block isn't forced back, the next one fires normally.
  • An idle screen shows the next showtime on its screensaver.

Payments ​

Tickets and paid requests (requestPrice > 0) are charged through np_payments first, with a receipt and refunds, paid to the cinema's society. Without it the framework's account is used (ESX accounts, then qbx / qb money), and without a framework both are free.

requestCharge = 'approve' charges when staff approve a request. 'submit' charges when it is made and refunds it when it is denied or expires.

With np_inventory running, a bought ticket is also an item (cinema_ticket) with the screen and its expiry. Using the item activates it for whoever holds it, so a ticket bought for a friend works for the friend.

Config ​

config/cinema.lua:

lua
Config.Cinema.surfaces = {
    ['cinema_main'] = {
        label = 'Doppler Cinema',
        staffJobs = { cinema = 0 },                       -- job = minimum grade, must be on duty
        requests = true,                                  -- audience request queue
        voteSkip = { enabled = true, ratio = 0.6, minVotes = 3 },
        ticket = { enabled = true, item = 'cinema_ticket', price = 25, account = 'bank',
                   society = 'cinema', validMinutes = 180 },
    },
}
Key Default Meaning
surfaces {} Per-surface cinema settings. Fields left out fall back to defaults
defaults no staff jobs, requests on, vote to skip 60 % / 3, tickets off ($25, bank, cinema, 180 min) Applied to every cinema surface
requestPrice 0 Price of an audience request. 0 = free
requestCharge 'approve' 'approve' or 'submit' (refunded on deny or expiry)
requestCooldownSec 120 Seconds between two requests from one player on one screen
maxRequests 20 Open requests per screen and routing bucket
requestTtlSec 3600 Unhandled requests are dropped (and refunded) after this
viewerRange 0 Metres that count as the audience. 0 = the surface's draw radius
schedule.enabled true Run showtimes
schedule.catchUpMinutes 5 A missed block still starts this many minutes late. 0 = exact minute only
eas See Emergency broadcast

Most of these are editable in np_admin (Settings → Screens → Cinema).