Skip to Content
CoreQBCore Shared Data

Shared data

qb-core loads its shared definitions before client and server scripts. At the verified commit, the manifest includes shared files for items, jobs, gangs, vehicles, weapons, locations, locale, and helper functions.

Read one namespace

The GetShared export accepts a namespace and an optional item key:

local policeJob = exports['qb-core']:GetShared('Jobs', 'police') local allItems = exports['qb-core']:GetShared('Items')

Unknown namespaces and keys return nil. Check the result before reading nested fields.

Read through the core object

local QBCore = exports['qb-core']:GetCoreObject({ 'Shared' }) local water = QBCore.Shared.Items['water']

Request only the sections a resource needs. Treat these definitions as framework-owned data; runtime mutations should use the supported server exports documented under Shared mutation exports.

Upstream files

Last updated on