Studios
Spawn Objectsspawn-2.jpg

Configuration

FreeSpawn ObjectsStandalone
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Glitch Spawn Objects is a lightweight and efficient FiveM resource designed to spawn, synchronise, and persist world objects seamlessly across all players on the server.

Edit shared/config.lua to customise your spawn oi experience:


Basic Settings

Config = {}

Config.Debug = false -- Set to true to enable debug mode, which will draw markers for spawned objects.

Permission Configuration

Config.permissionSystem = "ace" -- Options: "ace", "discord", "steam", "license", "everyone"
Config.acePermission = "command.spawnobject" -- ACE permission required (only used when permissionSystem = "ace")
Config.allowedDiscordAccess = {"Owner", "Admin Team"} -- List of roles that are allowed access to commands (only used when permissionSystem = "discord") (Note: You need to implement your own Discord role checking logic)
Config.allowedSteamIDs = {"steam:123456789", "steam:987654321"} -- List of allowed Steam IDs (only used when permissionSystem = "steam")
Config.allowedLicenses = {"license:abc123", "license:def456"} -- List of allowed licenses (only used when permissionSystem = "license")

Command Configuration

Config.commands = {
    spawnObject = "spawnobject", -- Command to spawn a new synced object
    syncedObjects = "syncedobjects" -- Command to view all synced objects
}

Misc Configuration

Config.ignoreSceneType = {"christmas"} -- List of scene types to exclude from being loaded by this script.
Config.itemsPerPage = 20 -- Amount of objects shown per page via /syncedobjects
Config.renderDistance = 150.0 -- The distance threshold (in units) at which objects will be rendered. Modify this value to adjust the render distance.

Discord Logging

Configure your discord system in shared/apiKeys.lua:
- Discord logging is available, set up API key within shared/apiKeys.lua if you wish to use it.

local apiKeys = {
    discordWebhook = "https://discord.com/api/webhooks/"
}

Settings reference#

Edit shared/config.lua. Values below come from the current source configuration. Restart the resource after changing its Lua configuration.

Setting Default / reference
Config.Debug false
Config.permissionSystem "ace"
Config.acePermission "command.spawnobject"
Config.allowedDiscordAccess Table; see fields and defaults.
Config.allowedSteamIDs Table; see fields and defaults.
Config.allowedLicenses Table; see fields and defaults.
Config.commands Table; see fields and defaults.
Config.ignoreSceneType Table; see fields and defaults.
Config.itemsPerPage 20
Config.renderDistance 150.0
Config.maxDuration 10080
Config.enablePredefinedProps false
Config.propsSource "custom"
Config.predefinedPropsUrl "https://raw.githubusercontent.com/DurtyFree/gta-v-data-dumps/master/ObjectList.ini"
Config.predefinedProps {}
Config.customPredefinedProps Table; see fields and defaults.
Config.propsChunkSize 1000
Config.preloadProps true