Starting the script
Errors in the server console when a TopX script starts
1 min read · Updated Dec 3, 2026
These errors show in the server console, right when you start or restart a script.
Could not find dependency TopXBridge (or ox_lib, oxmysql)
A script needs a resource that is not on the server or is not started.
- Check that the folder is in your
resourcesand its name is exactlyTopXBridge,ox_liboroxmysql. - Start the dependencies before the script:
ensure ox_lib
ensure oxmysql
ensure TopXBridge
ensure [topx]
WARNING
After you restart TopXBridge, restart every TopX script too. A script keeps the old copy of the bridge until it starts again.
The script starts and stops at once
Open the server console and read the first red line after the name of the script. It is almost always one of the three problems of this page: a missing dependency, a missing table or a config file with a typo.
Syntax error in config.lua
You changed the config and a comma, a quote or a bracket is missing. The console tells you the line, for example config.lua:42.
- Every option line ends with a comma.
- A text is between quotes:
'auto'. - Every
{has a}.
If you cannot find it, copy the original config.lua from the download and change your options again, one at a time.
The framework, inventory or target is not found
Options like Framework, Inventory and Target are auto by default and the bridge finds what your server runs. When it finds nothing, or the wrong one, write the name yourself in the config of TopXBridge, for example Framework = 'qbx', and make sure that resource starts before the TopX scripts.