When something goes wrong on your FiveM server, the console almost always says what. Here are the most common messages, each with the fix and a link to a guide that goes deeper.
Reading the console
In the game panel, open Console, restart your server and read from the top down: the first error is usually the cause.
txAdmin (the Tx Admin button on your server page) shows the same under Live Console, with Search and Download. You can also type commands there: after a fix, refresh and ensure my-script restart the script without restarting your server.
Couldn't find resource
Couldn't find resource my-script. means no folder in resources has that name: check the spelling and capitals. Do you also see my-script does not have a resource manifest (fxmanifest.lua)? Then the fxmanifest.lua sits one folder too deep, as in resources/my-script/my-script/. Move the contents up one level, see Install scripts (resources).
Couldn't start resource
The folder exists, but starting failed. The reason is in the lines above it, as in this example with qbx_core from Qbox, which needs ox_lib and oxmysql:
Could not find dependency ox_lib for resource qbx_core.: a required resource is missing. Install it under exactly that name, from the releaseox_lib.zip: the source code (ox_lib-main) lacks files.Resource 'qbx_core' can't run:withserver needs to be 10731 or higher: your FXServer is too old. Update your artifacts.onesync: OneSync needs to be enabled: turn on OneSync in txAdmin, see Advanced server.cfg settings.gameBuild: sv_enforceGameBuild needs to be at least 3095: raise your game build, see Set the game build and DLCs.
Failed to verify protected resource
A paid script with Asset Escrow is damaged or misses its .fxap file, often after an FTP upload. You lack the required entitlement means your license key belongs to another Cfx.re account than your purchase. Both are fixed in Get paid FiveM scripts (escrow) working.
Error parsing script
Error parsing script @my-script/config.lua in resource my-script with a line number is a typo, usually right after you edited a config file: a comma, quote mark or end is missing. Fix that line under Files. With syntax error near '<\1>' in a paid script, the file is damaged: see above.
SCRIPT ERROR with a stack trace
SCRIPT ERROR: @my-script/server/main.lua:25: attempt to index a nil value (global 'ESX')
> handler (@my-script/server/main.lua:25)
The first line names the file and line where it went wrong; the > lines show how the code got there. attempt to index a nil value means the script uses something that doesn't exist, often a framework that hasn't started yet or a different framework. Send the complete error to the maker.
No such export
No such export GetCoreObject in resource qb-core (QBCore) means a script calls a function of a resource that isn't running, is named differently or lacks that function. Put that resource higher under Resources and check that the script supports your framework, see ESX, QBCore or Qbox.
Database errors (oxmysql)
Unable to establish a connection to the databasewith a code such asER_ACCESS_DENIED_ERROR: yourmysql_connection_stringis wrong. The codes are explained in Connect a database (oxmysql).my-script was unable to execute a query!withTable '...' doesn't exist: import the script's SQL file.
server thread hitch warning
server thread hitch warning: timer interval of 250 milliseconds: the server was stuck that long (FXServer reports it above 150 milliseconds). Normal while starting; if it keeps coming back with players online, find the cause with resmon and the profiler.
Could not authenticate server license key
Your license key is wrong or no longer works, so your server keeps restarting. Fix it as in Cfx.re license key.
Need help? Send the error text through support, never your server.cfg: it contains your license key.
Need a server? Our FiveM server hosting starts at €5 a month, with txAdmin ready to go. You can also try one free for 24 hours.

