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.

Error1 min · Act. jun 2026

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 solution
Error1 min · Act. jun 2026

attempt 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 solution
Error1 min · Act. jun 2026

oxmysql 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 solution
Error1 min · Act. jun 2026

NUI: 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 solution
Error1 min · Act. jun 2026

ACE 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 solution
Cómo se hace1 min · Act. jun 2026

How 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 solution
Error1 min · Act. jun 2026

A 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 solution
Error1 min · Act. jun 2026

attempt 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 solution
Error1 min · Act. jun 2026

event %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 solution
Error1 min · Act. jun 2026

unexpected 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 solution
Optimización1 min · Act. jun 2026

Warning: 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 solution
Cómo se hace1 min · Act. jun 2026

Migrate 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 solution
Cómo se hace1 min · Act. jun 2026

How 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 solution
Error1 min · Act. jun 2026

The 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 solution
Optimización1 min · Act. jun 2026

Optimize 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 solution
Error1 min · Act. jun 2026

attempt 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
Error1 min · Act. jun 2026

@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 solution
Error1 min · Act. jun 2026

Couldn'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 solution
Cómo se hace1 min · Act. jun 2026

Create 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 solution
Cómo se hace1 min · Act. jun 2026

The 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 solution
Error1 min · Act. jun 2026

Failed 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 solution
Error1 min · Act. jun 2026

attempt 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 solution
Error1 min · Act. jun 2026

No 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 solution
Cómo se hace2 min · Act. jun 2026

How 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 solution
Cómo se hace2 min · Act. jun 2026

How 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 solution
Cómo se hace1 min · Act. jun 2026

How 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 solution
Cómo se hace2 min · Act. jun 2026

How 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 solution
Cómo se hace2 min · Act. jun 2026

How 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 solution
Cómo se hace1 min · Act. jun 2026

FiveM 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 solution
Cómo se hace2 min · Act. jun 2026

ESX 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 solution
Cómo se hace2 min · Act. jun 2026

Creating 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 solution
Cómo se hace1 min · Act. jun 2026

How 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 solution
Error2 min · Act. jun 2026

FiveM 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 solution
Cómo se hace2 min · Act. jun 2026

Install 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 solution
Cómo se hace2 min · Act. jun 2026

FiveM 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
FiveM guides · errors and fixes | Crxative-M