Free guides
FiveM errors and how to fix them
The fixes for the bugs that block server owners the most. Clear and to the point. Different case? Try it in the AI tool.
attempt to index a nil value (global 'ESX')
The most common ESX Legacy error. We explain the cause and the definitive fix so ESX loads before your resource.
View solutionattempt to call a nil value (field 'getMoney')
ESX changed its API: getMoney() no longer exists. Here is the correct method to read the player's money.
View solutionoxmysql won't connect / connection string error
If oxmysql won't start or throws a connection error, it's almost always the connection string. Here's the correct format.
View solutionNUI: fetch / RegisterNUICallback not responding
If your NUI interface doesn't talk to Lua, it's almost always the resource name in the fetch URL. Solution and the correct pattern.
View solutionACE permissions not working (add_ace / add_principal)
An admin command or menu won't let you in even though you have permissions. It's almost always a permission name that doesn't match. How to fix it.
View solutionHow to create a job in ESX Legacy
Create a new job on your ESX server: SQL for jobs and grades, and how to assign it. A clear guide with examples.
View solutionA resource won't start (couldn't start resource)
Your resource doesn't start and the console complains. We go over the most common causes: fxmanifest, dependencies and load order.
View solutionattempt to perform arithmetic on a nil value
This Lua error pops up when you do a math operation with a variable that is nil. We explain how to find the culprit and harden it.
View solutionevent %s does not exist, or was not safe for net
Your TriggerServerEvent or TriggerClientEvent isn't arriving. It's almost always because the net event isn't registered with RegisterNetEvent. Here's the fix.
View solutionunexpected symbol near '<something>'
A syntax error stops your resource from loading. We teach you how to read the message and find the brace, parenthesis or comma that's extra or missing.
View solutionWarning: Script took too long to execute
Slow-script warnings and server stutters almost always come from a loop without a Wait. We explain how to find it and fix it.
View solutionMigrate from mysql-async to oxmysql
mysql-async and ghmattimysql are deprecated. We explain how to move your queries to oxmysql, the standard, maintained connector.
View solutionHow to grant admin permissions in ESX
We explain how to assign the admin group to a player in ESX, from the database and with ACE permissions, so they have access to the admin commands.
View solutionThe server doesn't appear in the FiveM list
If your server doesn't show in the list or nobody can join, it's almost always the ports or the endpoint. We explain how to set it up right.
View solutionOptimize your FiveM server and reduce lag
FiveM server lag is almost always a resource that spends too much. We teach you to measure with resmon and find the culprit.
View solutionattempt to index a nil value (global 'QBCore')
QBCore's equivalent of the classic ESX error. How to get the core object correctly and the right load order.
View solution@ox_lib/init.lua could not be found
Your resource depends on ox_lib but the server can't find it. The real cause and fix: folder name, startup order and shared_script.
View solutionCouldn't start resource
The server won't start a resource and shows "Couldn't start resource". The 4 real causes (manifest, dependencies, syntax and files) and how to fix it.
View solutionCreate a command in FiveM with RegisterCommand
Learn to create /coords, /heal or admin commands in FiveM with RegisterCommand, server-authoritative and with ACE permission control.
View solutionThe crxative CLI: AI on your own FiveM server
Install the Crxative-M CLI on your VPS and fix, create and audit scripts from the terminal, with an AI that knows ESX, QBCore, Qbox and ox.
View solutionFailed to verify protected resource (escrow)
The error you get with paid escrow (.fxap) scripts. Here's why it happens and how to link the key so it loads.
View solutionattempt to concatenate a nil value
Happens when you join (..) a variable that is nil. We show you how to find which one and protect it.
View solutionNo such export in a resource
You call an export that doesn't exist or the resource didn't load. We explain the 3 causes and the fix.
View solutionHow to make a FiveM server from scratch
Step-by-step guide to set up your FiveM server from scratch: FXServer artifact, keymaster license, txAdmin, an ESX or QBCore base and a ready server.cfg.
View solutionHow to install ESX Legacy in FiveM
Install ESX Legacy from scratch: requirements, es_extended and its dependencies (oxmysql, ox_lib), importing the .sql, configuring mysql_connection_string and the correct ensure order.
View solutionHow to install QBCore in FiveM
Install QBCore step by step: requirements (FXServer + MySQL + oxmysql), downloading qb-core and the qb resources, the correct ensure order and how to get the CoreObject without errors.
View solutionHow to add add-on cars to FiveM
Add add-on cars to your FiveM server: the resource structure with a stream/ folder (.yft/.ytd), the fxmanifest with the data_file entries for each .meta, where the spawn name lives, and how to test it with /car.
View solutionHow to install an MLO or map in FiveM
Step-by-step guide to install an MLO or map on your FiveM server: resource structure with stream/, the fxmanifest, entrance coordinates and tools like CodeWalker.
View solutionFiveM server.cfg: example explained
A FiveM server.cfg commented from top to bottom: endpoints, sv_maxclients, OneSync, licenseKey, ensure order and secrets in a separate file. Ready to copy and adapt.
View solutionESX vs QBCore: which one to choose
An objective comparison of ESX and QBCore, the two most-used FiveM frameworks: what each one is, the real differences, their equivalent API and how to choose without bias.
View solutionCreating an item in ESX and QBCore
A clear guide to adding a new FiveM item: where it's defined in ox_inventory (items.lua), classic ESX (items table) and QBCore (shared/items.lua), how to make it usable, and where the image goes.
View solutionHow to create a job in QBCore
Learn to define a job in QBCore (qb-core/shared/jobs.lua) with label, defaultDuty and grades, assign it with SetJob, and safely check the permission on the server.
View solutionFiveM Connection timed out / can't connect to the server
If FiveM gets stuck on "Connection timed out" or "Connecting timed out" when joining a server, here is the full diagnosis: port 30120 TCP and UDP, server.cfg endpoints, a blocked deferral and the client cache.
View solutionInstall ox_inventory in FiveM
Complete guide to installing overextended's ox_inventory: dependencies (oxmysql + ox_lib), importing the SQL, the correct ensure order, and configuring it for ESX and QBCore.
View solutionFiveM keybind with RegisterKeyMapping
Learn how to create a configurable key in FiveM with RegisterKeyMapping and RegisterCommand: the player rebinds it in Settings. Includes held keys (+/-) and when to use IsControlJustPressed.
View solution