Paid scripts
Poggy Screens
Screens players place in the world. They show words, pictures and video with sound, and everyone nearby sees the same thing at the same moment. Staff can schedule shows at set times of day: a picture house, a notice board, a saloon stage.
Poggy Screens is $49.99 once, or included in All Access ($14.99 a month). Get it on the store.
Overview#
Poggy Screens lets players put up a screen anywhere in the world and give it slides: words, pictures and video with sound. The screen plays its slides in a loop, and every player nearby sees the same slide and the same moment of a video, including players who walk up later.
Staff can schedule shows: a video or picture that starts on a screen at set times of the real day, or every so many minutes. Pictures and videos come from media packs you add to the server, and staff can turn a link to a picture into a new picture in game, with no restart.
- Real screens in the world. Four shapes (landscape, portrait, square and a wide banner), each in three sizes. A screen is either a painted board lit by the sun and lamps, or (landscape only) a glowing screen that lights itself.
- Nine styles. A timber board, a billboard on posts, a gilt or dark wood frame, a poster board, an easel, a hanging sign, a cloth banner between poles or a theatre front with bulbs. They have depth and a back, and are solid.
- Lights you can see. A plain light, or a fitting on the style: gooseneck lamps, a picture light, a hanging lantern or footlights.
- Slides. Words in your own colours or over a background picture, pictures, and video.
- Video with sound. The sound fades as you walk away and stops at the screen's range. Each player sets their own volume.
- Shows at set times of the real day, or every so many minutes, with an optional notice to nearby players.
- One panel for everything.
/screenplaces, edits, finds and removes screens, and lists the media you may use. - An editor where you build the playlist and move and turn the screen while you watch it change in the world.
- Permissions for who may place screens, change other players' screens, schedule shows and make pictures, and how many screens each character may have.
- Every setting in the
/poggysettings hub, and every line players read intranslations.lua.
Requirements#
- A RedM server running VORP Core, RSG Core or QBCore RedM.
- poggy_core 0.28.0 or newer. It connects the script to your framework, runs the settings hub and draws the editor. Start it first.
- oxmysql. It saves the screens.
Three more resources come with Poggy Screens, in the same folder:
| Resource | What it is for |
|---|---|
poggy_screens_props | The screen models, with their boards, frames, posts and lamps. Without it nothing is shown. Poggy Screens 0.5.0 needs version 0.4.0 or newer. |
poggy_screens_pack_basics | A starter media pack: nine slide backgrounds (parchment, chalkboard, wooden boards, canvas, red curtain, newspaper, poster, slate and night sky) and a demo video, The Last Train West. Words work without any pack. |
poggy_screens_pack_live | Holds the pictures staff make in game with /screen pack. Only needed for the pack maker. |
Installation#
- Download Poggy Screens from your Cfx portal.
- Put the
[poggy_screens_pack]folder in your server's resources folder. It holds all four resources:poggy_screens,poggy_screens_props,poggy_screens_pack_basicsandpoggy_screens_pack_live. Keep them inside it. - Add them to your
server.cfgafteroxmysqlandpoggy_core, in this order:ensure oxmysql ensure poggy_core ensure poggy_screens_props ensure poggy_screens_pack_basics ensure poggy_screens_pack_live ensure poggy_screens - Restart the server. The database tables are created on the first start. There is nothing to import.
- In game, type
/screenand press Place a new screen.
New screen models (poggy_screens_props) need a full server restart. A media pack added later does not: see Media packs.
The script makes two database tables:
| Table | What it holds |
|---|---|
poggy_screens | The screens: where they stand, how they look and their slides. |
poggy_screen_shows | The shows scheduled on them. |
To manage the database yourself, set PoggyCoreConfig.Sql.AutoInstall = false in poggy_core's config.lua and import sql/install.sql.
Configuration#
Every setting can be changed in game in the settings hub: type /poggy and pick Poggy Screens. The same settings are in config.lua. Every line players read is in translations.lua. Both files stay readable, so you can edit them.
General
| Setting | Default | What it does |
|---|---|---|
| Command | screen | The chat command, without the slash. Players type /screen. |
| Edit key | G | The key that opens the editor beside a screen you may change. Advanced setting. |
| Size of a new screen | Medium | Small (1.2 m wide), Medium (2 m) or Large (3.6 m). Players can change it in the editor. |
| Kind of a new screen | Painted board | A painted board is lit by the sun and lamps like any sign. A glowing screen lights itself and is bright at night. |
| Allow glowing screens | on | Off: players can only place painted boards. |
| Range of a new screen | 25 m | How near a player must be to see and hear a new screen. |
| Smallest range / Largest range | 5 m / 60 m | The range a player may give a screen. Sound carries as far as the range. |
| Where a new screen appears | 3 m | How far in front of the player a new screen first appears. |
| Furthest a screen may be put | 15 m | How far from themselves a player may put or move a screen. |
| Edit distance | 3.5 m | How near a player must stand to a screen to be offered Edit screen. |
| Panel lists screens within | 60 m | How far the /screen panel looks for other players' screens a player may change. A player's own screens are always listed, wherever they are. |
| Solid styles | on | Frames, billboards, easels and the like are solid. Off: players walk through them. |
Slides
| Setting | Default | What it does |
|---|---|---|
| Slides per screen | 20 | The most slides in one screen's playlist. |
| Letters per text slide | 300 | The most letters on one slide of words. A slide also holds at most 10 lines. |
| Time on screen | 8 s | How long a new slide stays. |
| Shortest / Longest time on screen | 2 s / 600 s | How short or long a slide may stay. Videos always play their full length. |
| Missing media card | 5 s | How long the "Missing media" card stays when a slide's picture or video is not on the server. |
Shows
| Setting | Default | What it does |
|---|---|---|
| Shows | on | Off: nobody can schedule shows and none start. |
| Shows per screen | 6 | The most shows one screen may have scheduled. |
| Slides per show | 5 | The most slides one show may hold. |
| Shortest repeat | 5 min | The shortest gap an "every so many minutes" show may have. |
| Notice distance | 60 m | Players within this distance of the screen are told a show is about to start. |
Media and the pack maker
| Setting | Default | What it does |
|---|---|---|
| Pack maker | on | Off: nobody can make pictures in game with /screen pack. Pictures already made stay. |
| Largest picture file | 8 MB | The largest picture file the server will fetch from a link. |
| Pictures made in game | 40 | The most pictures that can be made in game. Every player downloads them when they join, so keep it modest. |
| Allow the sharper quality | on | Lets the maker choose 1024 x 576. Off keeps every picture at 512 x 288, a quarter of the download. |
| Run refresh first | off | Leave off unless new pictures show "Missing media" until the next server restart. See Troubleshooting. |
Who may use the pack maker is on the same tab. See Permissions.
Look and sound
| Setting | Default | What it does |
|---|---|---|
| Furthest a screen is drawn | 60 m | Screens farther than this are never drawn, whatever their own range. |
| Dim glowing screens at night | on | Glowing screens are dimmed after dark so they are not a bright slab. |
| Night brightness | 30% | How bright a glowing screen is at night, compared with daytime. |
| Night starts / Night ends | 21 / 5 | The in-game hours night starts and ends. Dusk and dawn fade over the hour before and after. |
| Lamp colour | #ffd6aa | The colour of the light a screen's lamp throws. |
| Lamp reach / Lamp strength | 4.5 m / 2.5 | How far the lamp's light reaches and how strong it is. |
| Video sound | on | Off: videos play without sound for everyone. |
| Volume | 80% | How loud video sound is. Players can turn it down for themselves with /screen sound. |
| Screens heard at once | 3 | The most screens a player hears at the same time. The loudest win. |
| Editor colours | 12 colours | The colours offered in the editor for words and backgrounds: Gold, Parchment, White, Silver, Red, Rust, Green, Blue, Navy, Wine, Dark wood and Black. Add, remove or change them. |
| Editor letterings | 26 letterings | The letterings offered for words on a slide. Each has a name, the game's number for it and how many letters cross a screen at normal size (raise that if long lines run off the edge). Only Poster has been checked in game; remove any that show no words. |
The Advanced settings on this tab (Skip screens seen from behind, Colour correction, Word placement) are best left as shipped. Change Word placement only if words sit off-centre for everyone.
Language and the editor's look
- Language (
Config.Language, defaulten) picks the block oftranslations.luato use. Only English ships. Add your own language intranslations.lua. - The editor follows the theme you chose in
/poggy→ Poggy Core → Theme. Players can size it with/poggyui. - Debug output (off) prints what the script is doing to the console. Leave it off on a live server.
Commands#
The command name is a setting (Config.Command, screen by default). Players never need more than /screen: the words after it are shortcuts for what the panel and editor already do. Everything except media, sound, info, pack and help works on the nearest screen you are allowed to change, within a few metres.
| Command | Who | What it does |
|---|---|---|
/screen | Everyone | Opens the screens panel. See Using it in game. |
/screen edit | Players who may change the screen | Opens the editor for the screen you stand beside. |
/screen new | Players who may place | Opens the editor for a new screen, even beside an existing one. |
/screen place [s|m|l] [glow|lit] | Players who may place | Puts a screen up at once, without the editor. Example: /screen place l lit |
/screen say <words> | Players who may change the screen | The screen shows just these words. Example: /screen say Saloon open tonight |
/screen add text <words> | Players who may change the screen | Adds a slide of words. |
/screen add picture <pack/name> [seconds] | Players who may change the screen | Adds a picture slide. |
/screen add video <pack/name> [times] | Players who may change the screen | Adds a video slide, and how many times it plays. Example: /screen add video basics/last_train |
/screen time <seconds> | Players who may change the screen | How long each slide stays. |
/screen clear | Players who may change the screen | Takes every slide off. |
/screen lamp | Players who may change the screen | Lamp on or off. |
/screen range <metres> | Players who may change the screen | How near a player must be to see and hear it. |
/screen size <s|m|l>, /screen kind <glow|lit> | Players who may change the screen | Change the screen itself. |
/screen move | Players who may change the screen | Brings the screen in front of you. |
/screen remove | Players who may change the screen | Takes the screen down. |
/screen show list, show add ..., show remove <number> | Players who may schedule shows | Schedule shows. See Shows. |
/screen media | Everyone | Lists the pictures and videos you may use on this server. |
/screen sound <0-100|on|off> | Everyone | Your own volume for screens. Example: /screen sound 50 |
/screen pack | Admins, and the jobs and characters listed under Media | Opens the pack maker. Needs poggy_screens_pack_live started. |
/screen info | Everyone | How many screens there are and how many are drawn near you. |
/screen rt <number|off> | Everyone | A test on your own game only, for when names over players show up on a screen. Leave it alone otherwise. |
/screen help | Everyone | The list of shortcuts, in game. |
Keys
| Key | What it does |
|---|---|
| G | Beside a screen you may change: open the editor (Edit screen). |
| Hold a mouse button off the panel | Look around while the editor is open. |
| Mouse wheel over a value | Change it. Hold Shift for bigger steps. |
| Esc | Leave the editor and drop your changes. |
Permissions#
Set in /poggy → Poggy Screens → Permissions (and the Shows and Media tabs), or in config.lua.
As shipped
- Everyone can place screens, up to 3 each.
- A player can change and remove their own screens.
- Admins can change and remove any screen, schedule shows and make pictures, and are not limited.
- Nobody else can schedule shows or use the pack maker until you list them.
- Every media pack is for everyone unless the pack itself says otherwise.
| Setting | Default | What it decides |
|---|---|---|
| Who may place screens | Everyone | Everyone, Listed jobs and characters, or Staff only. Admins may always place. |
| Jobs that may place | none | Used when placing is set to listed jobs and characters. Each row is a job and the lowest rank that may (0 = every rank). |
| Characters who may place | none | Character ids that may place, whatever their job. |
| Screens per character | 3 | The most screens one character may have up at once. 0 means no limit. |
| Jobs / Characters who may change any screen | none | They can edit, move and remove screens they do not own. |
| Jobs / Characters who may schedule shows | none | They can schedule shows on screens they are allowed to change: their own, or any screen if they are also on the "change any screen" list. |
| Jobs / Characters who may use the pack maker | none | They can make pictures in game with /screen pack (Media tab). |
- Job names must match your framework's spelling. Capital letters do not matter. Where a character holds several jobs, any held job counts.
- A character id is the number your framework gives each character.
- "Admin" is decided by poggy_core from your framework's own admin groups.
- The server checks every action again, so a player cannot get around these settings.
Who may put a media pack's pictures and videos on a screen is set in the pack, not here. See Who may use a pack. Everyone can always watch what is on a screen.
Using it in game#
The screens panel
Type /screen. One panel holds everything a player does with screens:
- Screens: Place a new screen, Edit the screen beside me, then My screens (with how far away each one is, and x of 3 when there is a limit) and the screens near you that you may change. A screen in reach has Edit. One farther off has Show the way (a route on the map) and, for your own, Bring here (moves it in front of you). Remove asks you to press twice, and works from anywhere.
- Media: the pictures and videos you may use, by kind. Put on a new screen opens the editor for a new screen already showing it.
- Settings: your own screen sound, how many screens there are and, for staff, the pack maker.
Placing a screen
- Stand where you want it and face the way you want to look at it.
- Type
/screenand press Place a new screen. A new screen appears in front of you and the editor opens at the bottom right. - On the Slides tab, add words, a picture or a video.
- On the Screen tab, choose its shape, size, style, kind, light and range (Seen and heard from). Use the arrows to move it left and right, nearer and farther, lower and higher, and to turn it.
- Press Place.
To change a screen later, stand beside it and press G, or press Edit beside it in the panel. Change what you like and press Save. Cancel or Esc drops your changes.
While a slide is selected in the editor, the screen shows only that slide, so you see what you are doing. Press it again to see the whole playlist play.
Slides
| Slide | What you choose |
|---|---|
| Words | Type the words as they will stand: Enter starts a new line (up to 10). Pick a lettering for the slide and a size for each line (Fits itself, or Tiny to Colossal). A size is the same height in the world on every screen, so a Large line is the same on a small poster and on a billboard. A line too long for its screen wraps, then shrinks. Click a colour to paint every letter, or select some letters first to paint only those. Symbols puts a symbol among the letters. Then pick a background colour or picture, where the words sit, and how long the slide stays. |
| Picture | A picture from a media pack, whether it fills the screen or shows whole, and how long it stays. |
| Video | A video from a media pack, and how many times it plays. A video always plays its full length. |
A slide whose picture or video is not on the server shows a plain "Missing media" card for a few seconds, and the playlist moves on.
Video and sound
- Sound is loudest beside the screen and fades to nothing at the screen's range.
- A player hears at most three screens at once (the loudest).
- Each player sets their own volume with
/screen sound 0to/screen sound 100, or on the panel's Settings tab.
Shows
A show is a video or picture that starts on a screen at set times of the real day (your server's clock, not the in-game time). When it ends, the screen goes back to its own slides.
- Stand beside a screen that is already placed and open the editor.
- Open the Shows tab. It is only there for players allowed to schedule shows.
- Choose What plays and give the show a name.
- Choose At set times every day and type the times, for example
18:00, 21:30, or Every so many minutes. - Optionally set how many minutes before the start nearby players are told.
- Press Add show.
The same by command, beside the screen:
/screen show add basics/last_train daily 18:00 21:00 notice 5
/screen show add basics/last_train every 30
/screen show list
/screen show remove 4
- Times are 24-hour. "Every 30" starts on the hour and the half hour; "every 20" at :00, :20 and :40.
- A player who walks up during a show joins it at the right point.
- If two shows on one screen overlap, the one already playing finishes first.
- Removing a show that is playing stops it at once. Restarting the script during a show picks it up where it should be.
Media packs
Screens cannot load a web address: the game can only show files that are part of the server. Pictures and videos come in media packs, small resources you add like any other. /screen media lists what your server has. Each item is named pack/name, for example basics/last_train.
- Put the pack's folder in your resources folder.
- In the server console, type
refresh, thenensure <pack folder>. No restart needed: the pack is there for everyone a few seconds later. - Add
ensure <pack folder>toserver.cfg, beforeensure poggy_screens, so it also loads after the next restart.
A picture tagged background in its pack is offered as a background for word slides. Video sound must be .ogg or .webm.
Who may use a pack
A pack can say who may put its pictures and videos on a screen: some jobs (with a lowest rank), some characters (by full name or character id) or some permission groups. Admins always may. It is "allow" in the pack's pack.json:
"allow": { "jobs": [ { "job": "sheriff", "rank": 0 } ], "characters": [ "John Marston" ], "groups": [ "admin" ] }
- At the top of the file it covers the whole pack. Inside one item it covers that item alone and wins over the pack's (
"allow": {}on an item means everyone). Leave it out and the pack is for everyone. - A player only sees the media they may use, and the server refuses to save a slide or a show that uses media they may not. A slide already on a screen stays when someone else edits that screen.
- An
"allow"with a mistake in it is named in the server console and treated as admins only, never as everyone.
Making a picture in game
Admins, and anyone you list on the Media tab, can type /screen pack. It needs poggy_screens_pack_live started.
- Paste a link to a picture (
http://orhttps://; PNG, JPG, WebP, GIF or BMP). - Give it a short name and a title, choose the quality, whether it is offered as a slide background, and who may use it.
- Press Make picture. A few seconds later it is in everyone's game as
live/<short name>. No restart.
- The window also lists the pictures made this way, each with a remove button.
- The server fetches the link, not the player's game. Links to the server itself or to a home or office network are refused, and so is anything that is not a picture or is larger than Largest picture file.
- The picture keeps its own shape: a tall poster stays tall.
- To add or remove a picture, Poggy Screens stops and starts
poggy_screens_pack_liveand nothing else. Screens showing one of its pictures show "Missing media" for a few seconds while that happens. - Every player downloads these pictures when they join: at most 74 KB each at 512 x 288, 295 KB at 1024 x 576.
- Each picture made or removed is written to the server console with who did it and the link.
Troubleshooting#
Nothing appears where a screen was placed
poggy_screens_props must be started, and the server fully restarted since it was added.
A screen is a board with no picture
A player sees at most six screens of one shape, size and kind at once; the nearest six are drawn. Or the player is outside that screen's range.
A slide shows "Missing media"
The slide's pack is not started, or the item was renamed or removed. /screen media lists what is there. A broken pack never stops the script: it is named once in the server console, in plain words, and left out.
A picture or video is not in my list
Its pack is limited to some jobs, characters or groups. See Who may use a pack.
"The pack maker needs the resource poggy_screens_pack_live"
Add that resource and start it: refresh, then ensure poggy_screens_pack_live.
A picture made in game shows "Missing media" until the next restart
Turn on Run refresh first (Media tab, advanced; Config.Packs.UseRefresh = true) and add this line to server.cfg (use your folder name if you renamed poggy_screens):
add_ace resource.poggy_screens command.refresh allow
A video has no sound
The pack's sound file must be .ogg or .webm; the game cannot play MP3 or MP4. Check that /screen sound is not 0 and that Video sound is on.
Words sit off-centre for everyone
Set Word placement (Config.Draw.TextAspect) to a number such as 1.78. Leave it at 0 otherwise.
Names or statuses over players show up on a screen
Config.Draw.ResetTarget must be 0, as shipped.
Words on portrait, square or banner screens look stretched
poggy_screens_props is older than 0.4.0. Install the one that came with this version and restart the server.
A glowing screen is too bright at night
Lower Night brightness, or use the painted board kind.
Updating#
Poggy Screens updates through poggy_core's updater. Your config.lua and translations.lua are merged, so new settings arrive with their defaults and your values stay.
- New screen models (
poggy_screens_props) need a full server restart. - Poggy Screens 0.5.0 needs
poggy_screens_props0.4.0 or newer. - When you update
poggy_screens_pack_live, copy the new files over the old folder. Do not delete it first: itslive.jsonandstreamfolder are your server's pictures. - Coming from 0.4.0:
/screennow opens the panel instead of the editor./screen edit, or G beside a screen, still opens the editor at once.