Installing FiveM Scripts
Script Structure
Every FiveM script (resource) has this structure:
my_script/
├── fxmanifest.lua # Manifest file
├── client.lua # Client-side code
├── server.lua # Server-side code
├── config.lua # Configuration
└── html/ # NUI (web interface)
Installing a Script
- Download the script
- Extract it into the
resources/folder - Add it to
server.cfg:
ensure my_script
- Restart the server
ESX Scripts
ESX is the most popular RP framework:
# Core ESX
ensure es_extended
ensure esx_menu_default
ensure esx_menu_dialog
ensure esx_menu_list
# Jobs
ensure esx_policejob
ensure esx_ambulancejob
ensure esx_mechanicjob
ensure esx_taxijob
# Features
ensure esx_banking
ensure esx_vehicleshop
ensure esx_property
QBCore Scripts
QBCore is more modern and better structured:
ensure qb-core
ensure qb-policejob
ensure qb-ambulancejob
ensure qb-garages
ensure qb-inventory
ensure qb-phone
Startup Order Matters
The load order is important:
- Framework first (ESX/QBCore)
- Dependencies (oxmysql, etc.)
- Core scripts (inventory, HUD)
- Job scripts
- Cosmetic scripts (emotes, clothing)
Free Script Sources
| Source | Description |
|---|---|
| GitHub | Open-source scripts |
| cfx.re Forum | Community scripts |
| Overextended | High-quality open-source |
Common Errors
- "SCRIPT ERROR": Check dependencies
- SQL error: Import the database tables
- Script not loading: Check fxmanifest.lua syntax