Shipping: opening night checklist
A restaurant does not open for guests without prepped stations, a backup line, and a rollback plan if a dish fails. Same here: convars pinned, ACE locked, the database backed up, monitoring on, and a known-good build to revert to. You will build one small resource named qu_release that prints a boot header on start, then rehearse a backup and a one-command rollback before you ever touch production.
Build it
Make the release resource
txAdmin ships bundled inside FXServer, so you already have an admin panel at http://localhost:40120 the first time you boot. You do not install it separately. Inside your server's resources folder, create one folder for this lesson:
resources/qu_release/
fxmanifest.lua
server.lua
VERSION
Put your release tag in VERSION (no quotes, no extension content beyond the tag):
v1.0.0
Write fxmanifest.lua
Open fxmanifest.lua and paste this. Note there is no lua54 'yes' line. Lua 5.4 is the only runtime now, so that line is deprecated and ignored. Leave it out.
fx_version 'cerulean'
game 'gta5'
server_script 'server.lua'
files {
'VERSION'
}
Print a boot header
During an incident you should never have to ask "what version is running?". Open server.lua and paste this. It reads VERSION from the resource and prints a short header when the resource starts.
AddEventHandler('onResourceStart', function(resource)
if resource ~= GetCurrentResourceName() then return end
local version = LoadResourceFile(GetCurrentResourceName(), 'VERSION') or 'dev'
version = version:gsub('%s+', '')
print('[qu_release] release : ' .. version)
print('[qu_release] artifact : ' .. GetConvar('sv_enforceGameBuild', 'unset'))
print('[qu_release] boot ok')
end)
Pin the build and lock permissions
Open server.cfg. Pin the game build so a Rockstar update cannot crash every player, then load and lock the resource. Use a current build number from the live artifacts list (linked at the bottom) and never pin a stale build you copied from an old guide.
Keep reading the full lesson
Sign in to start, then unlock every step of this lesson and the full FiveM School with a membership.
- If something went wrong
- What you can do now
- Try it yourself
The remainder of Shipping: launch checklist is available to FiveM School members.