ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
QBCoreshared

QBCore.Shared.Items

QBCore shared documentation with a FiveM Lua example.

Summary

The table of all defined items in QBCore. Read it to look up an item's label, weight, and metadata, e.g. when showing item info.

Returns

table — keyed by item name.

Example

local item = QBCore.Shared.Items['water']
print(item.label, item.weight)

Common pitfalls

  • Item must be defined here or lookups return nil.
  • On ox_inventory servers, items live in ox_inventory's items.lua instead.

Related functions

Related guides

FiveM scripts done right

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.

Browse Scripts →