Install a FiveM script or framework (ESX, QBCore)
Drop your resources into resources/, add ensure to server.cfg and configure the database.
Install a FiveM script or framework (ESX, QBCore)
Installing a framework (ESX, QBCore) or a script always follows the same logic: drop the resource in, declare it, then configure its dependencies.
Cause / The problem
A script that does not show up in game or throws errors at startup is almost always misplaced, not declared in server.cfg, or missing its database dependency.
Solution
- Drop the resource into your server’s
resources/folder. Each resource must live in its own subfolder containing anfxmanifest.lua(or__resource.lua) file. - Configure the database. The ESX and QBCore frameworks require MySQL. Import the provided
.sqlfile into your database via phpMyAdmin, then addensure oxmysqlbefore the framework inserver.cfg. - Declare the resources in
server.cfg, in the correct order (dependencies first):ensure oxmysql ensure qb-core # or es_extended ensure qb-management - With txAdmin, you can also use a recipe (QBCore ships an official
txAdminRecipe) that automatically deploys the whole framework and configuresserver.cfg. - Restart the server and check the console: a resource that starts correctly displays
Started resource xxx. - On a “resource not found” error, make sure the folder name exactly matches the
ensureline, and thatfxmanifest.luasits at the root of the folder.
Never mix the ESX and QBCore frameworks on the same server: they conflict.