Skip to content

Phone cast ​

With np_phone running, np_screens adds a Cast app to the phone (installed on every phone by default). It lists the screens near you, works a mini remote, and casts a link, a photo slideshow or your Chirp feed to a screen. /cast opens the phone straight into the app.

Without np_phone (or with Config.Integrations.np_phone = false or Config.Cast.enabled = false) nothing is registered and nothing errors.

Screens near me, sorted by distance, with what each one shows

Screens near me ​

The app lists the surfaces within radius (30 m, capped by each surface's draw radius) that you may present or edit on, nearest first, with their distance and what they show. Tap one for its page.

On a screen ​

A screen in the Cast app: what is on, a mini remote and the cast options

  • Mini remote: play / pause, ±10 s, next, volume and the queue length for what is on. These go through the same playback events and server checks as the remote. Open full remote opens the remote.
  • Cast a link: with present, a video is queued (and plays at once when the screen is idle). Anything else, and any link when you only have edit, replaces what the screen shows. The surface's allowedKinds and the content filters apply.
  • Photo slideshow: pick up to maxPhotos (30) photos from your np_phone gallery and albums. The server reads them from your own gallery by id, mirrors them and shows one every slideSeconds (10 s). Needs a surface that accepts images.
  • Chirp wall: your Chirp feed (feedTab: For you, Following or Trending) as a wall on the screen, refreshed every feedRefreshSeconds, up to feedMaxPosts posts.

A Chirp wall on a screen

Picking photos for a slideshow

While casting ​

Now casting, and the Live Activity in the Dynamic Island with Pause and Stop

The app shows Now casting with Pause and Stop casting, and the phone shows a Live Activity in the Dynamic Island with the same two buttons. A player casts to one screen at a time, and a screen takes one cast at a time. Stopping a slideshow or wall clears the screen.

Every action is checked again on the server: the surface is looked up from its id, the range is measured from the server-side ped position (plus rangeMargin, so walking away mid-tap isn't refused at the edge) and the capability is re-checked. All Cast calls share one rate limit per player.

Cast events are announced as np_phone notifications in the Cast app, or through the HUD chain (np_hud, ox_lib, GTA feed) with notifyVia = 'hud'.

Other resources can cast too, with the CastToNearestScreen export.

Config ​

config/cast.lua:

Key Default Meaning
enabled true Register the app
appId 'np_screens_cast' App id, also the prefix of its phone RPCs and the Live Activity id. Keep it stable or players lose the app
name, description, developer 'Cast', … App Store entry
icon, tint 'tv', 'blue' Font Awesome name and np_phone tint
default true Installed on every phone
command 'cast' Opens the phone in the app. false disables it
radius 30.0 Metres for Screens near me
rangeMargin 5.0 Extra metres allowed on server re-checks
slideSeconds 10 Seconds per photo
maxPhotos 30 Photos per slideshow
photoPool 100 Newest photos offered by the picker
feedTab 'foryou' 'foryou', 'following' or 'trending'
feedRefreshSeconds 30 Chirp wall refresh
feedMaxPosts 12 Posts on the wall
notifyVia 'phone' 'phone' or 'hud'
rateLimit 8 / 5000 ms Cast calls per player