Skip to content

FiveM Resource Conflicts

This guide helps you identify and fix FiveM resource conflicts, script errors, and framework issues that cause server problems.


Two resources trying to do the same thing:

  • Multiple HUD systems
  • Multiple inventory systems
  • Duplicate job scripts

Mixing incompatible frameworks:

  • ESX resources on QBCore server
  • Old ESX versions with new resources
  • Multiple framework cores loaded

Resources loading before their dependencies:

  • Job script loading before framework
  • UI loading before its library

Resources fighting over the same tables:

  • Multiple resources using users table differently
  • Schema mismatches after updates

  1. txAdmin Console — Real-time in the txAdmin panel
  2. Server Console — In your control panel
  3. citizen-server.log — In txData/logs/ folder
Error ContainsMeaningFix
SCRIPT ERRORLua error in resourceCheck the named resource
attempt to index a nil valueMissing data or functionResource missing dependency
mysql-async errorsDatabase connection issueCheck database credentials
resource X not foundMissing dependencyInstall the required resource
ensure failedResource failed to startCheck resource for errors
duplicateTwo resources with same nameRemove duplicate

When you see an error like:

SCRIPT ERROR: @es_extended/server/main.lua:142: attempt to index a nil value

This tells you:

  • Resource: es_extended
  • File: server/main.lua
  • Line: 142
  • Error: Something expected data but got nothing

Resources load in the order listed in server.cfg. Dependencies must load first.

# 1. Database connection (ALWAYS first)
ensure oxmysql
# 2. Framework core
ensure es_extended
# OR
ensure qb-core
# 3. Framework dependencies
ensure esx_menu_default
ensure esx_menu_dialog
ensure esx_menu_list
# 4. Core systems
ensure esx_identity
ensure esx_society
ensure esx_billing
# 5. Jobs and features
ensure esx_policejob
ensure esx_ambulancejob
# 6. Third-party resources
ensure custom_hud
ensure custom_inventory
# 7. Optional/cosmetic resources (load last)
ensure loading_screen
ensure custom_sounds

ESX and QBCore are completely incompatible:

  • ESX resources won’t work on QBCore
  • QBCore resources won’t work on ESX
  • Running both causes severe conflicts

Before installing any resource, check:

  1. What framework it requires (ESX, QBCore, or standalone)
  2. What version of the framework (ESX Legacy, ESX 1.2, etc.)
  3. Dependencies listed in the resource’s README
ErrorCauseFix
ESX is nilESX not loaded or wrong resourceCheck ESX is loading
QBCore is nilQBCore not loadedCheck qb-core is loading
GetSharedObject undefinedWrong framework versionUpdate framework or resource
exports not foundResource name mismatchCheck resource folder name

  1. Disable half of your third-party resources (comment out with #)
  2. Restart the server
  3. Test — is the problem gone?
    • Yes → Problem is in the disabled resources
    • No → Problem is in the still-running resources
  4. Repeat until you find the culprit
  1. Open txAdmin
  2. Go to Resources
  3. Look for resources showing:
    • High CPU usage
    • Errors in the log
    • Failed to start
# Comment out suspicious resources
#ensure problem_resource_1
#ensure problem_resource_2
# Keep essential resources running
ensure es_extended
ensure oxmysql

  • Players losing items or money
  • Jobs not saving
  • “MySQL connection failed” errors
  • Duplicate key errors

Verify your database credentials in server.cfg:

set mysql_connection_string "mysql://user:password@localhost/database?charset=utf8mb4"

If two resources try to create the same table:

  1. Check both resources’ SQL files
  2. Remove duplicate table creation
  3. Use the schema from the primary resource
-- Example: Reset a player's inventory if corrupted
UPDATE users SET inventory = '[]' WHERE identifier = 'steam:123456789';

  1. Check that the txData folder has proper permissions
  2. Verify your server.cfg path is correct in txAdmin settings
  3. Check for port conflicts (default: 40120)
  1. Look at the Live Console for specific errors
  2. Check Resources page for failed resources
  3. Review System Log for startup issues

If problems appear after scheduled restarts:

  1. Check if any resources have state that doesn’t survive restarts
  2. Verify database connections are re-established
  3. Look for race conditions in resource startup

IssueFix
Voice not workingCheck port 30120 UDP is open
Echo or feedbackAdjust voice config distances
Only some players affectedClient-side microphone issue
IssueFix
Items disappearingCheck database connection
Duplicate itemsLook for inventory duplication bugs
Can’t pick up itemsCheck weight limits and permissions
IssueFix
Cars not savingCheck garage resource and database
Duplicate vehiclesLook for spawn script issues
Vehicles despawningAdjust vehicle cleanup settings

Use the built-in resource monitor:

resmon 1

This shows CPU time per resource. Look for:

  • Resources using more than 5ms consistently
  • Spikes during specific actions
  1. Unoptimized loops — Running every frame instead of on events
  2. Heavy database queries — Fetching too much data
  3. Memory leaks — Resources not cleaning up
  4. Too many markers/blips — Rendering overhead


  1. ✅ Check framework compatibility
  2. ✅ Read installation instructions completely
  3. ✅ Check dependencies and install them first
  4. ✅ Back up your server before installing
  5. ✅ Test on a development server first
  1. Keep framework updated to latest stable version
  2. Remove unused resources
  3. Monitor resource performance regularly
  4. Back up database daily

Before contacting support, gather these 3 things:

  1. Server ID — found in your panel URL or dashboard
  2. What you tried — list the steps you already attempted
  3. Error message or screenshot — exact text or image of what you see

Then contact us: