Skip to main content

Content Data

Configuration files for news, patch notes, rules, staff, and commands

This section

Content Data

5 separate Lua config files in the cfg/ folder that define the content displayed in each loading screen section.

News — cfg/news.lua

lua
News = {
{
img = "./gallery/1.jpg",
title = "News 1",
description = "Your announcement text here.",
date = "01/01/2021",
},
}
FieldTypeDescription
imgstringImage path or URL
titlestringNews headline
descriptionstringNews body text
datestringPublication date

Patch Notes — cfg/changelog.lua

lua
Changelog = {
{
name = "Patch 1",
description = "Description of changes.",
date = "01/01/2021",
},
}
FieldTypeDescription
namestringPatch version or name
descriptionstringChange description
datestringRelease date

Rules — cfg/rules.lua

lua
Rules = {
{
name = "No Racism",
description = "Being racist will get you banned permanently.",
},
}
FieldTypeDescription
namestringRule title
descriptionstringRule explanation

Staff — cfg/staff.lua

lua
Staff = {
{
name = "Chiepy",
img = "https://example.com/avatar.gif",
role = "Developer",
},
}
FieldTypeDescription
namestringStaff member name
imgstringAvatar image URL (supports GIFs)
rolestringStaff role or title

Commands — cfg/command.lua

lua
Commands = {
{
label = "Police",
value = "police",
commands = {
{ name = "/police", description = "Call the police." },
{ name = "/911", description = "Emergency call." },
},
},
}
FieldTypeDescription
labelstringCategory display name
valuestringCategory identifier
commandstableList of commands with name and description