Core Object
Let's dive into the core object of the qb-core resource!
Introduction
How to Access the Core Object
local QBCore = exports['qb-core']:GetCoreObject()-- I only need access to the functions of the core object!
local QBCore = exports['qb-core']:GetCoreObject({'Functions'})
-- Now the below is available to use!
-- QBCore.Functions
-- I need access to the functions and the shared!
local QBCore = exports['qb-core']:GetCoreObject({'Functions', 'Shared'})
-- Now the below are available to use!
-- QBCore.Functions
-- QBCore.SharedExported Functions
Core Features
Example Usage
Accessing Player Data
Using Shared Data
Registering Commands
Last updated
Was this helpful?
