Hey guys! I just installed okokcraft so far so good!!
It's crafting everything, but when I try to make a weapon, it simply gives the error below:
Im using Ox_Inventory, and i put on Config.lua and Server.lua of okokcraft the following codes:
Config.lua
Server.lua
Someone can help me pls?
It's crafting everything, but when I try to make a weapon, it simply gives the error below:
Im using Ox_Inventory, and i put on Config.lua and Server.lua of okokcraft the following codes:
Config.lua
Code:
Config.itemNames = {}
Server.lua
Code:
local itemNames
ESX.RegisterServerCallback('okokCrafting:itemNames', function(source, cb)
if not itemNames then
itemNames = {}
for item, data in pairs(exports.ox_inventory:Items()) do
itemNames[item] = data.label
end
end
cb(itemNames)
end)
Someone can help me pls?