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.
Requirements#
Requires ox_lib and oxmysql, a configured MySQL connection, and a database account that can create/update the synced_objects table. Start oxmysql and ox_lib before glitch-spawnobjects.
Installation steps#
- Download glitch-spawnobjects and extract the complete resource, including its UI files.
- Name the folder
glitch-spawnobjects(remove the-mainsuffix) and place it in your server'sresourcesdirectory. Resource names are case sensitive on Linux. - Start any providers listed above first, then add this to
server.cfg:
ensure glitch-spawnobjects
- Review Configuration, restart the server or resource, and follow Examples to verify the installation.
Permissions and persistence#
The resource creates and verifies synced_objects at startup; no separate SQL import is required for a fresh installation. Back up an existing database before updating.
The default permission system is ACE, with Config.acePermission = "command.spawnobject". Grant that permission to your admin group in server.cfg:
add_ace group.admin command.spawnobject allow
Ensure your administrator belongs to that group. Discord mode requires your own role-check integration. Configure optional logging in the server-only shared/apiKeys.lua.
Verify that the manifest paths match the files in your installed package, especially on case-sensitive servers.