Skip to main content

Configuration

Example Settings File

General Structure

SectionKey/FieldDescriptionTypeExample/Default Value
themetitleThe title displayed on the spawner UI.String"GTS Assets Spawner"
logoThe Asset ID of the logo displayed on the spawner UI.Number13970392854
categoriesCategoryX.nameThe name of the category.String"Standard 1 Free"
CategoryX.categoryTypeThe type of category ("free", "gamepass", "clothing", "groupRank", or "premium").String"free"
CategoryX.assetIdThe Asset ID required for access (if applicable).Number000000
CategoryX.layoutOrderThe order in which the category appears in the spawner.Number1
groupSettingsenabledWhether group restrictions are enabled.Booleanfalse
groupIdThe Group ID required for access.Number3395411
minimumSpawnRankThe minimum rank in the group allowed to spawn buses.Number1
minimumAdminRankThe minimum rank in the group with admin privileges.Number255
webhookSettingsenabledWhether webhook notifications are enabled.Booleanfalse
workersURLThe URL of the webhook worker.String"https://my-worker-url.workers.dev/"
CosmeticSettingsgamepassLockedWhether cosmetic settings are locked behind a Gamepass.Booleanfalse
gamepassIdThe Gamepass ID for cosmetic settings (if applicable).Number000000
modelsLocationN/AThe location of the bus models in the hierarchy.Instancegame.ServerStorage.BusModels
teleportToBusN/AWhether players teleport to the bus upon spawning it.Booleantrue
despawnOnLeaveN/AWhether buses despawn when players leave the game.Booleantrue
SpawnTypeN/AThe type of spawner used ("basic" or "advanced").String"basic"

A descriptive alt text


Config Example (As Lua Code)

SpawnerSettings
--!strict 
local Types = require(game:GetService("ReplicatedStorage"):WaitForChild("Spawner").ExternalModules.Types);

local config: Types.Config = {
theme = {
title = "GTS Assets Spawner",
logo = 13970392854,
},

categories = {
Category1 = {
name = "Standard",
categoryType = "free",
layoutOrder = 1,
},
},

groupSettings = {
enabled = false,
groupId = 3395411,
minimumSpawnRank = 1,
minimumAdminRank = 255,
},

webhookSettings = {
enabled = false,
workersURL = "https://my-worker-url.workers.dev/",
},

CosmeticSettings = {
gamepassLocked = false,
gamepassId = 000000
},

modelsLocation = game.ServerStorage.BusModels,
teleportToBus = true,
despawnOnLeave = true,
SpawnType = "basic",
TeleportType = "block"
}

return config
note

Still need support? Join our Discord Server for help!.