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 (applicable for "gamepass" or "clothing" categories).Number13600173502
CategoryX.groupRankThe group rank required for access (only for "groupRank" categories).Number255
CategoryX.layoutOrderThe order in which the category appears in the spawner.Number1
groupSettingsenabledWhether group restrictions are enabled.Booleanfalse
groupIdThe Group ID required for access.Number16838109
minimumSpawnRankThe minimum rank in the group allowed to spawn buses.Number1
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
TeleportTypeN/ADetermines the teleportation method ("seat" or "block").String"block"

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,
},

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

return config
note

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