Configuration
The main shared/config.lua options and the full file.
Everything lives in shared/config.lua. Restart the resource after changing it.
| Option | Default | What it does |
|---|---|---|
Config.Framework | 'standalone' | Framework used for identity and name: standalone, creative, vrp, qb, qbox or esx. It never switches by itself. |
Config.Resources | { vrp = 'vrp', qb = 'qb-core', qbox = 'qbx_core', esx = 'es_extended' } | Resource names of each framework, when they differ from the defaults. |
Config.Permissions.mode | 'ace' | How access is granted: ace (ACE only), framework (framework groups) or either (any of the two). Standalone requires ace or either. |
Config.Permissions.accessAce | 'rvt_banner.access' | ACE permission that opens the studio. |
Config.Permissions.managerAce | 'rvt_banner.manage' | Manager ACE permission: edits and deletes anyone’s banners and ignores the per-player limit. |
Config.Permissions.accessGroups | {} | Groups that open the studio on QB and ESX (exact names), in framework or either mode. |
Config.Permissions.managerGroups | {} | Manager groups on QB and ESX (exact names), in framework or either mode. |
Config.Notification | 'auto' | On-screen notices: auto (Notify on Creative, GTA notification elsewhere), native or creative. |
Config.Command | 'banners' | Command that opens the studio, without the slash. |
Config.Access | {} | Creative/vRP groups that open the studio in framework or either mode. Creative: { group, minimum level }; classic vRP: { permission }. Empty by default. |
Config.Managers | {} | Creative/vRP manager groups: edit, move and delete anyone’s banners and ignore the per-player limit. Empty by default. |
Config.Limits.total | 300 | Maximum banners on the whole server. |
Config.Limits.perPlayer | 40 | Maximum banners per player (managers ignore it). |
Config.Limits.perVehicle | 4 | Maximum banners on the same vehicle plate. |
Config.Content.maxItems | 8 | Items per playlist. |
Config.Content.maxUploadKB | 512 | Maximum size, in KB, of an image uploaded from the PC. It is compressed to fit. |
Config.Content.allowUploads | true | Allows uploading images from the PC. When false, links only. |
Config.Content.allowedHosts | {} | Domains allowed in links. Empty accepts any https link. YouTube always passes. |
Config.Render.slots | 6 | Banners drawn at the same time. Each slot costs one embedded browser. |
Config.Render.hdSlots | 2 | How many slots use HD resolution (the nearest banners). |
Config.Render.resolution | { 1280, 720 } | Resolution of the HD slots. |
Config.Render.lowResolution | { 640, 360 } | Resolution of the other slots. |
Config.Render.defaultDistance | 300.0 | Suggested display distance in the studio, in meters. |
Config.Render.maxDistance | 1500.0 | Largest distance the studio allows, in meters. |
Config.Render.ecoDistance | 90.0 | Beyond this distance video pauses and animation freezes. |
Config.Render.occlusion | true | Does not draw banners hidden behind the map. |
Config.Audio.fullDistance | 12.0 | Distance (m) up to which sound plays at full volume. |
Config.Audio.maxDistance | 60.0 | Distance (m) from which sound is silent. |
Config.Creator.maxCamDistance | 0 | Limits the studio free camera to this distance from the player. 0 = no limit. |
Config.Vehicles.enabled | true | Turns vehicle banners on. |
Config.Vehicles.scanRadius | 150.0 | Radius (m) in which the script looks for vehicle banner plates. |
Framework and permissions
Config.Framework sets how the script identifies the player. There is no automatic detection: the choice is always explicit. Config.Permissions.mode sets who has access: "ace" (default, ACE permissions only), "framework" (framework groups) or "either" (any of the two). Managers edit everyone’s banners and ignore the per-player limit; grant it carefully.
- standalone (default): the owner is the player’s license: identifier; without a license there is no access. Characters on the same license share banners. Requires ace or either.
- creative: Creative vRP passport (Proxy). Groups in Config.Access and Config.Managers: { { "Group", level } }.
- vrp: classic vRP (Proxy). Config.Access = { { "banner.use" } } and Config.Managers = { { "banner.manage" } }. Forks with different signatures and vRP 2 require adjusting open/bridge.lua.
- qb: qb-core; owner qb:<citizenid>. In framework/either mode, accessGroups and managerGroups are checked with HasPermission.
- qbox: qbx_core; owner qbox:<citizenid>. Access is always through ACE; job and gang do not grant access.
- esx: ESX Legacy; owner esx:<character identifier>. accessGroups and managerGroups compare the player’s exact group.
Switching framework
Changing framework does not transfer owners. Old banners stay in the database and visible, but the new identity gets no access to them; a manager can administer them. Keep a database backup.
The open/bridge.lua bridge (identity, name, authorization and notices) is editable to adapt forks. Identity and permission are resolved on the server only.
Restricting sites
To accept images only from hosts you trust, fill in allowedHosts. Subdomains match too.
Config.Content.allowedHosts = { 'i.imgur.com', 'cdn.discordapp.com' }
-- Subdomains match too. YouTube links are always accepted.Busy server
Each render slot is an embedded browser. On servers with many players, lower Config.Render.slots and hdSlots.
Full file (shared/config.lua)
Config = {}
-- Framework-independent install. Options: standalone, creative, vrp, qb, qbox or esx.
Config.Framework = 'standalone'
Config.Resources = { vrp = 'vrp', qb = 'qb-core', qbox = 'qbx_core', esx = 'es_extended' }
-- framework: groups below; ace: ACE only; either: any of the two.
-- Standalone requires ace/either. Qbox uses ACE in framework mode too.
Config.Permissions = {
mode = 'ace',
accessAce = 'rvt_banner.access', managerAce = 'rvt_banner.manage',
accessGroups = {}, managerGroups = {}, -- QB/ESX: fill in exact names when using framework/either mode.
}
-- auto uses Notify on Creative and the GTA notification elsewhere. native/creative force one.
Config.Notification = 'auto'
-- Command that opens the studio (create and manage banners)
Config.Command = 'banners'
-- Optional Creative/vRP groups. Empty by default; set only when using framework/either mode.
-- Creative: { { 'YourGroup', level } }; classic vRP: { { 'your.permission' } }.
Config.Access = {}
-- Managers edit, move and delete anyone's banners and ignore the per-player limit
Config.Managers = {}
Config.Limits = {
total = 300, -- banners on the whole server
perPlayer = 40, -- banners per persistent owner (managers ignore it)
perVehicle = 4, -- banners on the same plate
}
Config.Content = {
maxItems = 8, -- items per playlist
maxUploadKB = 512, -- images uploaded from the PC are compressed to fit here
allowUploads = true,
allowedHosts = {}, -- empty = any https link. Example: { 'i.imgur.com', 'cdn.discordapp.com' }
}
Config.Render = {
slots = 6, -- banners drawn at the same time (one embedded browser per slot)
resolution = { 1280, 720 }, -- resolution of the HD slots (nearest banners)
hdSlots = 2, -- how many slots are HD; the rest use lowResolution
lowResolution = { 640, 360 },-- resolution of the other slots
defaultDistance = 300.0, -- default display distance (m)
maxDistance = 1500.0,
ecoDistance = 90.0, -- beyond this the video pauses and the animation freezes
visibilityEvery = 100, -- ms between visibility checks
occlusion = true, -- do not draw banners hidden behind the map
sleepAfter = 500, -- ms out of sight until video and animation pause
parkAfter = 10000, -- ms out of sight until the media is released from memory
assignEvery = 500, -- ms between slot reassignments
lodGuard = 0.004, -- far away, pushes the banner off the wall (m per m) so building LOD does not cover it; 0 = off
lodStart = 80.0, -- from this distance (m)
lodMax = 0.6, -- maximum offset (m)
}
Config.Audio = {
fullDistance = 12.0, -- full volume up to here
maxDistance = 60.0, -- silent from here
}
Config.Creator = {
maxRay = 200.0, -- crosshair reach in the free camera
maxCamDistance = 0, -- 0 = unlimited free camera; e.g. 400.0 keeps it near the player
speed = 0.6,
boostMultiplier = 4.0,
}
Config.Vehicles = {
enabled = true,
scanEvery = 1000, -- ms between nearby-plate scans
scanRadius = 150.0,
}