Skip to main content

Common Dependencies

Most SixM scripts rely on one or more of the following open-source resources. Make sure they’re installed and running before starting any SixM script.

ox_lib

Required by most scripts. A utility library for FiveM with UI elements, callbacks, and more.
ensure ox_lib

Download ox_lib

Get the latest release from GitHub.

oxmysql

Required for database operations. The recommended MySQL resource for FiveM.
ensure oxmysql

Download oxmysql

Get the latest release from GitHub.

ox_inventory

Some scripts integrate with ox_inventory for item management.
ensure ox_inventory

ox_target

If you use target-based interactions (3D eye), you’ll need ox_target or qb-target.
ensure ox_target

Ensure Order

Your server.cfg should load resources in this order:
# Database
ensure oxmysql

# Framework
ensure es_extended  # or qb-core

# Libraries
ensure ox_lib

# Inventory
ensure ox_inventory  # or qb-inventory

# Target (optional)
ensure ox_target  # or qb-target

# SixM scripts (always last)
ensure sixm_scriptname
Loading SixM scripts before their dependencies will cause errors. Always ensure dependencies first.