ESX Legacy & QBCore
Installing resources and ordering them in server.cfg.
Adding a resource
- Upload the folderInto
resources/(ideally in a subfolder such as[custom]). - Import the SQLIf the resource ships with a
.sqlfile, import it into the database. - Add it to server.cfgAfter the framework and its dependencies.
server.cfg
# Order matters
ensure oxmysql
ensure ox_lib
ensure es_extended
ensure [core]
ensure [custom]server.cfg
# Order matters
ensure oxmysql
ensure qb-core
ensure [qb]
ensure [standalone]
ensure [custom]Common errors
“Couldn't find resource …”
The name in
ensure must match the folder name exactly (without square brackets for single resources).oxmysql errors on startup
Check
mysql_connection_string — host, port, username and password from the Databases tab.Was this page helpful?