Skip to main content

Config Files

All configuration is done inside config.js in the root of the resource. The file is unescrowd and fully editable.


Theme

theme: 'vice-city'

Sets the active color theme. Options: 'vice-city', 'cyberpunk', 'minimal-glass'. See the Themes page for details.


Background

background: {
video: true,
videoSrc: 'assets/video/cinematic.mp4',
images: [
'assets/images/bg1.jpg',
'assets/images/bg2.jpg',
],
slideshowInterval: 6000,
}
FieldTypeDescription
videobooleantrue = use video background, false = use image slideshow
videoSrcstringPath to the background video file
imagesarrayList of image paths for the slideshow
slideshowIntervalnumberMilliseconds between image crossfades (default: 6000)
tip

Video takes priority when video: true. The images array is only used when video: false.


Header Branding

header: {
logo: 'assets/images/logo.png',
title: 'Vice Studios',
subtitle: 'The city never sleeps',
}
FieldTypeDescription
logostringPath to your logo image. Set to null or '' to hide
titlestringServer name shown in the header
subtitlestringTagline shown below the title

Header Buttons

buttons: [
{ label: 'Discord', icon: 'fab fa-discord', action: 'url', url: 'https://discord.com/invite/...' },
{ label: 'Website', icon: 'fas fa-globe', action: 'url', url: 'https://your-site.com' },
{ label: 'Staff', icon: 'fas fa-users', action: 'staff' },
{ label: 'Rules', icon: 'fas fa-scroll', action: 'rules' },
]
FieldTypeDescription
labelstringButton text
iconstringFontAwesome icon class
actionstring'url' opens a link, 'rules' opens rules modal, 'staff' opens staff modal
urlstringURL to open (only needed when action: 'url')

You can add, remove, or reorder buttons freely.


Music Player

music: [
{
name: 'Miami',
artist: 'Will Smith',
url: 'assets/music/Miami.mp3',
cover: 'assets/images/miami.png',
},
{
name: 'Track Name',
artist: 'Artist',
url: 'https://www.youtube.com/watch?v=...',
cover: '',
},
]
FieldTypeDescription
namestringTrack name displayed in the player
artiststringArtist name displayed in the player
urlstringLocal path to an .mp3 file, or a full YouTube URL
coverstringPath to album art image. Leave '' to use the default icon
info

Both local MP3 files and YouTube stream URLs are supported. Set music: [] to hide the music player entirely.


Server Rules

rules: [
{
title: 'Respect Everyone',
description: 'Treat all players and staff with respect.',
},
]

Each rule has a title and a description. Rules are displayed in a numbered modal when the Rules button is clicked. Add as many as you need.


Staff Team

staff: [
{
name: 'Foxer',
role: 'Owner & Lead Developer',
avatar: 'assets/images/foxer.gif',
},
]
FieldTypeDescription
namestringStaff member's name
rolestringTheir role/title
avatarstringPath to their avatar image. Leave '' to use the default icon

External Shutdown (Advanced)

If you use ESX or another framework that controls when the loading screen closes, you can enable external shutdown via a convar in your server.cfg:

set loadscreen:externalShutdown "true"

When this is set, the loading screen will wait for the convar to be set to "true" before closing, instead of relying on the default engine signal.