Agents can also search and read this documentation through its MCP server.
Config
The config file is
config.js, located in the root of the resource. All paths are relative to the resource folder.
updateCheck
Checks for a new version when the resource starts and prints the result to the server console.
updateCheck: true,
General
These values define the overall look of the loading screen.
accentColor: "#ff6961",
visualizerTheme: "bars",
serverNameMain: "HKN WORKS",
serverNameSub: "RP",
serverSubtitle: "Live in the moment",
bgPath: "assets/bg.mp4",
logoPath: "assets/logo.png",
Settings
| Option | Description |
|---|---|
accentColor |
Main color of the interface. |
visualizerTheme |
Theme of the audio visualizer. |
serverNameMain |
Main part of the server name. |
serverNameSub |
Second part of the server name. |
serverSubtitle |
Slogan shown below the server name. |
bgPath |
Path to the background video or GIF (MP4 recommended). |
logoPath |
Path to the server logo. |
Visualizer Themes
| Value | Description |
|---|---|
bars |
Dual ring bar equalizer. |
wave |
Smooth closed wave. |
dots |
Rotating particle cloud. |
overlayTexts
Texts shown on the first screen, before the player clicks to start the music.
overlayTexts: {
title: "CONNECTING TO SERVER",
subtitle: "Click anywhere to start the music",
},
Music
These values define the music player.
musicVolume: 1,
volumeControl: {
enabled: true,
spacebarPause: true,
muteLabel: "Mute",
unmuteLabel: "Unmute",
spacebarHint: "Press Space to pause the music.",
},
playlist: [
{ file: "assets/song1.mp3", name: "Diamonds", artist: "Rihanna", cover: "assets/music.png" },
{ file: "assets/song2.mp3", name: "Hopeless", artist: "Gothurted", cover: "assets/music2.png" },
{ file: "assets/song3.mp3", name: "Not Afraid", artist: "Eminem", cover: "assets/music3.png" }
],
Settings
| Option | Description |
|---|---|
musicVolume |
Default music volume, between 0 and 1. |
volumeControl |
Settings of the volume control. |
playlist |
List of songs played on the loading screen. |
Volume Control
| Option | Description |
|---|---|
enabled |
Shows or hides the volume control. |
spacebarPause |
Allows pausing the music with the Space key. |
muteLabel |
Text of the mute button. |
unmuteLabel |
Text of the unmute button. |
spacebarHint |
Hint text shown for the Space key. |
Playlist
| Option | Description |
|---|---|
file |
Path to the song file. |
name |
Name of the song. |
artist |
Artist of the song. |
cover |
Path to the cover art. |
loadingText
Text shown on the loading bar.
loadingText: "Loading Assets",
socials
Social media links shown on the loading screen. Write the link to show a platform, or set it to false to hide it.
socials: {
discord: "https://discord.gg/link",
instagram: "https://instagram.com/link",
telegram: false,
youtube: "https://youtube.com/link",
tiktok: false,
twitter: false,
facebook: false,
twitch: false,
reddit: false,
steam: false,
spotify: false,
kick: false,
},
socialTexts
Texts shown on the card of each social media platform.
socialTexts: {
discord: { title: "Discord Server", desc: "Join our Discord to stay updated with everything about the FiveM server!", btn: "Join Discord" },
instagram: { title: "Instagram", desc: "Follow us on Instagram for the latest updates and highlights!", btn: "Follow on Instagram" },
},
Settings
| Option | Description |
|---|---|
title |
Title of the card. |
desc |
Description of the card. |
btn |
Text of the button. |
tabTexts
Names of the tabs.
tabTexts: {
keyboard: "Keyboard",
rules: "Rules",
staff: "Staff",
gallery: "Gallery",
},
Rules
These values define the Rules tab.
rulesTitle: "Server Rules",
rulePrefix: "Rule",
rules: [
"No griefing or trolling other players.",
"Respect all admins and staff decisions.",
"No hacking, exploiting, or modding in unfair ways.",
"Always keep your behavior mature and respectful.",
"Do not spam chat or use slurs or hate speech."
],
Settings
| Option | Description |
|---|---|
rulesTitle |
Title of the Rules tab. |
rulePrefix |
Word shown before the number of each rule. |
rules |
List of rules. Each line is one rule. |
Staff Team
These values define the Staff tab.
staffTitle: "Server Staff",
staff: [
{ name: "Founder", role: "Server Owner", color: "#ff0066", image: "assets/logo.png" },
{ name: "Admin", role: "Head Admin", color: "#ff3333", image: "assets/logo.png" },
{ name: "Mod", role: "Moderator", color: "#33ccff", image: "assets/logo.png" }
],
Settings
| Option | Description |
|---|---|
name |
Name of the staff member. |
role |
Role of the staff member. |
color |
Color used for the staff member. |
image |
Path to the staff member's image. |
Gallery
These values define the gallery slider.
galleryTitle: "Gallery",
sliderTitle: "Gallery",
gallery: [
"assets/1.png",
"assets/2.png",
"assets/3.png",
],
Settings
| Option | Description |
|---|---|
galleryTitle |
Title of the Gallery tab. |
sliderTitle |
Title of the slider. |
gallery |
List of image paths shown in the gallery. |
keybinds
Keys shown in the Keyboard tab. The left side is the key, the right side is its description.
keybinds: {
"1": "Inventory Slot 1",
"TAB": "Open Inventory",
"ESC": "Pause Menu",
"E": "Interact / Use",
"F": "Enter / Exit Vehicle",
"F1": "Help Menu",
},
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto page URLs; this page is available as Markdown.