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

  1. Download the script
  2. Extract it into the resources/ folder
  3. Add it to server.cfg:
ensure my_script
  1. 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:

  1. Framework first (ESX/QBCore)
  2. Dependencies (oxmysql, etc.)
  3. Core scripts (inventory, HUD)
  4. Job scripts
  5. 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