RE:CORD
REC_ItemManager

Exports

Welcome to REC_ItemManager documentation.
Added
Updated

These let your own scripts read and set prices, so a shop, a heist payout or a crafting recipe can use the same numbers the panel shows.

Server side

getCost

Gives you what an item is worth to the server.

ArgumentTypeDescription
itemNamestringItem name to look up

Returns integer? — nil if the item is not registered.

exports.REC_ItemManager:getCost(itemName)

getPrice

Gives you what a shop charges for an item, market movement included.

ArgumentTypeDescription
itemNamestringItem name to look up

Returns integer? — nil if the item is not registered.

exports.REC_ItemManager:getPrice(itemName)
sample.lua
RegisterCommand("cigsprice", function()
    local price = exports.REC_ItemManager:getPrice("cigarette")
    if price == nil then
        return
    end

    print(("The shop sells one cigarette for %d today."):format(price))
end, true)

getItem

Gives you everything known about one item.

ArgumentTypeDescription
itemNamestringItem name to look up

Returns MetaData? — nil if the item is not registered. Same fields as getItems.

exports.REC_ItemManager:getItem(itemName)

getItems

Gives you every item at once, keyed by item name.

Takes no arguments. Returns table<string, MetaData>:

FieldTypeDescription
namestringItem name
typeItemTypesgeneral or weapon
labelstringDisplay label
imagestringPicture file name
costintegerWhat the item is worth
markupnumberWhat the shop adds on top
marketFactornumberHow far the market has nudged it. 1.0 is untouched
marketCirculationinteger?The count the last review compared against
excludeFromMarketbooleanThis item is priced by hand
priceintegerThe shop price
circulationintegerHow many are out there
updatedAtinteger?Last updated
createdAtinteger?Created
exports.REC_ItemManager:getItems()

setCost

Changes what an item is worth. Shop prices follow immediately.

ArgumentTypeDescription
itemNamestringItem name
costintegerA whole number, 0 or above

Returns boolean — false if the item is unknown or the value was refused.

exports.REC_ItemManager:setCost(itemName, cost)

setMarkup

Changes what the shop adds on top.

ArgumentTypeDescription
itemNamestringItem name
markupnumberAbove 0 and up to 100

Returns boolean — false if the item is unknown or the value was refused.

exports.REC_ItemManager:setMarkup(itemName, markup)
The four reading exports are instant and cost nothing, so call them as often as you like. The two writing ones save to the database and show up in the change log under your script's name.
©2026 RE:CORD Development Group. All rights reserved.