setStock

Set stock to a specific quantity in a shop. if item name is not provided, it will set stock for all items.

Set stock to a specific quantity in a shop. if item name is not provided, it will set stock for all items.

Export

---**`server`**
---@param shopId string
---@param payload? { name?: string; quantity?: number; metadata?: any }
---@return boolean, string?
function exports.fd_shops:setStock(shopId, payload) end

Example

exports.fd_shops:setStock('General', { name = 'water', quantity = 10, metadata = {} })