Skip to main content

Framework Setup

fiveLib resources are designed to be flexible and compatible with the most popular FiveM frameworks.

Supported Frameworks

Our resources primarily support:

  • QB-Core: Standard and custom builds.
  • Qbox: Native compatibility via the QBCore wrapper/bridge.
  • ESX: Standard and Legacy versions.

Setting Your Framework

In most fiveLib scripts, you will find a framework setting in the config.lua or shared/config.lua. It is crucial to set this correctly before starting the resource.

Example:

Config.Framework = 'qb' -- Options: 'qb', 'qbox', 'esx'

Why Selection Matters

Setting the correct framework ensures:

  • Player Data: The script can correctly retrieve citizen IDs, names, and jobs.
  • Economy: Deposits, withdrawals, and payments are handled via the correct banking/money events.
  • Inventory: Item images and metadata are pulled from the correct inventory system.
  • Notifications: The script uses your framework's native notification system for a consistent UI.

Standalone Resources

Some of our resources, like the Animation Wheel or Loadingscreen, are 100% standalone and do not require any framework selection. These will work on any server regardless of the base.

Bridge System

For resources like the Ownable Market, we use a robust bridge system that automatically handles the differences between QB and ESX. This ensures that you get the same premium features and performance regardless of your choice.