Troubleshooting
Common issues and solutions for Tworst Scripts.
Script Won't Start
Check Resource Name
Resource names are case-sensitive on Linux servers:
# Correct
ensure tw-scrapyard
# Wrong (case sensitive on Linux)
ensure TW-Scrapyard
ensure Tw-scrapyardCheck Load Order
Make sure dependencies start before Tworst Scripts:
# server.cfg - Correct order
ensure oxmysql # Database (must be first)
ensure es_extended # or qb-core (framework)
ensure PolyZone # Required for all Tworst Scripts
ensure tw-scriptname # Tworst Scripts lastPolyZone is required for all Tworst Scripts. Make sure it's installed and started before the script.
Check Resource Folder
Verify the resource is in the correct
resourcesfolderCheck that the folder name matches exactly (no spaces or special characters)
Make sure all files were extracted properly
Check Console for Errors
Press F8 in-game to see client console
Check server console for red error messages
Look for specific error messages to identify the issue
Framework Issues
"ESX not found" or "QBCore not found"
Your framework setting doesn't match your server:
"attempt to index a nil value (global 'ESX')"
Check if your framework is starting properly
Verify the framework resource name in your
server.cfgMake sure
Config.Frameworkmatches your actual framework
"No such export" Error
Missing dependency. Check that you have:
PolyZone - Required for all scripts
oxmysql (or mysql-async/ghmattimysql) - Database resource
Your framework (ESX/QBCore/vRP)
UI Not Showing
Step 1: Clear FiveM Cache
Delete the FiveM cache folder:
Or in FiveM settings, click "Clear Cache".
Step 2: Check NUI Files
Verify the html/ folder exists in the resource and contains all files.
Step 3: Check Browser Console
Press F8 in-game
Go to the NUI tab
Look for JavaScript errors (red text)
Step 4: Check for Conflicts
Another script might be blocking NUI. Try disabling other UI scripts temporarily.
Database Issues
Tables Not Creating Automatically
Check your database resource is running (
oxmysql,mysql-async, orghmattimysql)Verify
Config.SQLmatches your database resourceCheck database connection in
server.cfgManually import
insert.sqlas a last resort
"Table doesn't exist"
If automatic creation failed:
Find the
insert.sqlfile in the script folderImport it using HeidiSQL, phpMyAdmin, or command line
Restart the server
"Connection refused" / "Access denied"
Check your database connection string in server.cfg:
Make sure:
Username and password are correct
Database exists
User has proper permissions
In-Game Issues
Job Menu Doesn't Open
Check if you're at the correct location (see
config/coordinate.lua)Verify your interaction system is configured correctly:
Enable debug mode to see console messages:
Check if blips/markers are showing on the map
Markers/Blips Don't Show
Check coordinates in
config/coordinate.luaVerify blip settings are enabled in config
Check for coordinate conflicts with other scripts
Vehicles Don't Spawn
Check vehicle model names are correct in config
Verify vehicle key system is configured:
The script auto-detects your vehicle key system
Items Not Given / Inventory Issues
Check
Config.Inventorymatches your inventory system:Make sure items exist in your inventory system
Check
Config.InventoryImagePathfor correct image paths
Config Syntax Errors
"attempt to call a nil value" in config
You have a syntax error. Check for:
Missing commas between values
Unclosed brackets
{}or parentheses()Mismatched quotes
"or'
Changes to Config Don't Apply
Save the file (Ctrl+S)
Restart the resource:
ensure tw-scriptnameOr restart the entire server
Check for syntax errors preventing load
Performance Issues
High Resource Usage (resmon)
Disable debug mode in production:
Check for conflicts with other resources
Reduce draw distances if configurable
Lag Spikes
Check database query efficiency
Monitor with
resmoncommand in F8 consoleEnsure database resource is optimized
Common Error Messages
attempt to index a nil value (global 'ESX')
Framework not detected
Check Config.Framework setting
attempt to index a nil value (global 'QBCore')
Framework not detected
Check Config.Framework setting
No such export
Missing dependency
Install required resource (PolyZone, etc.)
SCRIPT ERROR: @tw-...
Script error
Check full error message, report to support
Table 'tw_...' doesn't exist
Database issue
Import insert.sql or check database connection
Debug Mode
Enable debug mode to get more information about issues:
Debug mode will show:
Console messages for each action
Coordinate information
State changes
Remember: Always disable debug mode on production servers for better performance.
Still Need Help?
Last updated

