Configuration
Example Settings File
General Structure
Section | Key/Field | Description | Type | Example/Default Value |
---|---|---|---|---|
theme | title | The title displayed on the spawner UI. | String | "GTS Assets Spawner" |
logo | The Asset ID of the logo displayed on the spawner UI. | Number | 13970392854 | |
categories | CategoryX.name | The name of the category. | String | "Standard 1 Free" |
CategoryX.categoryType | The type of category ("free" , "gamepass" , "clothing" , "groupRank" , or "premium" ). | String | "free" | |
CategoryX.assetId | The Asset ID required for access (applicable for "gamepass" or "clothing" categories). | Number | 13600173502 | |
CategoryX.groupRank | The group rank required for access (only for "groupRank" categories). | Number | 255 | |
CategoryX.layoutOrder | The order in which the category appears in the spawner. | Number | 1 | |
groupSettings | enabled | Whether group restrictions are enabled. | Boolean | false |
groupId | The Group ID required for access. | Number | 16838109 | |
minimumSpawnRank | The minimum rank in the group allowed to spawn buses. | Number | 1 | |
modelsLocation | N/A | The location of the bus models in the hierarchy. | Instance | game.ServerStorage.BusModels |
teleportToBus | N/A | Whether players teleport to the bus upon spawning it. | Boolean | true |
despawnOnLeave | N/A | Whether buses despawn when players leave the game. | Boolean | true |
TeleportType | N/A | Determines the teleportation method ("seat" or "block" ). | String | "block" |
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!.