Configuration
Everything you can change is in config.lua.
General
| Option | Default | What it does |
|---|
Config.Debug | false | Console messages while setting up. |
Config.TargetResource | 'auto' | 'auto' uses fusing-target or qb-target, or name a target resource, or false for none. |
Config.RemoteDistance | 12.0 | How far from a TV it can still be controlled. |
Config.LockToUser | true | While someone is playing something on a shared TV, only they, the owner or admins can change it. |
Config.MasterVolume | 0.5 | Scales every TV for everyone (0.0 to 1.0). The game's own volume sliders do not affect TVs. |
Config.MaxScreens | 4 | How many TVs can play at once for each player (the nearest ones). Higher costs FPS. |
Config.IdleText | '' | Text under the logo on the standby and home screen. '' shows the logo only. |
Using a TV
Config.Interact: walk up to a TV and press the key.
| Option | Default | What it does |
|---|
Enabled | true | Turns the key prompt on or off. |
Control | 51 | The key. 51 is E on keyboard, D-pad right on controller. |
Distance | 2.5 | How close to a TV, or below a wall screen, you need to be. |
What can be played
| Option | Default | What it does |
|---|
Config.Sources.youtube | true | youtube.com and youtu.be links. |
Config.Sources.gta | true | GTA's own TV channels (on TVs, not wall screens). |
Config.Moderation.BlockedWords | {} | Links containing any of these words are refused, e.g. { 'nsfw' }. |
Config.Moderation.Webhook | '' | Discord webhook that logs who played what. '' is off. |
TV models
Config.Models lists the TV props that can be used. It comes with every GTA flat-screen TV prop that has its own screen (21 flat-screen models). The picture plays on the TV's real screen in full HD.
| Field | What it does |
|---|
label | Name of the TV. |
target | The prop's screen name in the game files. |
range | How far the TV can be heard and seen. |
volume | Starting volume. |
frame | Optional. For TVs whose stand or bezel makes the mouse miss: how much of the model is not screen. |
Config.Models = {
['prop_tv_flat_01'] = {
label = 'Flat TV',
target = 'tvscreen',
range = 20.0,
volume = 60,
},
}
A screen is shared by every copy of a model, so only the nearest one of each model plays at a time. Placed Flat TVs are the exception: each one gets its own screen, so up to 4 near each other can play different things.
Watch history
| Option | Default | What it does |
|---|
Config.History.Enabled | true | Keeps a watch history per character. |
Config.History.Max | 12 | How many are kept per kind. |
Player-placed TVs
| Option | Default | What it does |
|---|
Config.Place.Enabled | true | Lets players place TVs from an item. |
Config.Place.Items | 17 TVs, e.g. fusing_tv places prop_tv_flat_01 | Item name and the model it places. |
Config.Place.MaxPerPlayer | 2 | How many TVs each player can place. |
Config.Place.MaxDistance | 5.0 | How far from the player a TV can be placed. |
Config.Place.SpawnDistance | 60.0 | Placed TVs appear within this distance. |
Map TVs
| Option | Default | What it does |
|---|
Config.World.AnyoneCanUse | true | Anyone can use TVs that are part of the map. |
Wall screens
| Option | Default | What it does |
|---|
Config.Screens.DefaultRange | 35.0 | Range for screens that do not set their own. |
Config.Screens.DefaultVolume | 70 | Volume for screens that do not set their own. |
Config.Screens.PublicByDefault | false | When true, screens without a job can be used by anyone. Admins always can. |
Config.Screens.Static | {} | The list of screens. |
Each screen takes label, coords, heading, pitch, width, height and an optional job, range and volume.
Static = {
{ label = 'Vanilla Unicorn', coords = vector3(112.0, -1290.0, 29.8), heading = 120.0, pitch = 0.0, width = 3.2, height = 1.8, job = 'vanilla' },
},
Admin
| Option | Default | What it does |
|---|
Config.Admin.Ace | 'fusingtv.admin' | The ace admins need. |