Client

openCrafting

opens specified crafting config

---@param mode | points / books / usable_items
---@param key | the crafting config key
exports["sm_crafting"]:openCrafting(mode, key)


-- example
-- opens crafting config "scale" from points.lua
RegisterCommand('openCrafting', function()
    exports["sm_crafting"]:openCrafting('points', 'scale')
end)

Last updated