Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Request okokcraft error

sw1ft

Member
Joined
Jan 24, 2023
Messages
6
Reaction score
1
Points
156
Location
Portugal
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:
errocraft.png

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?
 

D3vil233

Silver Elite
Joined
Sep 12, 2021
Messages
50
Reaction score
6
Points
156
Location
Portugal
me to any fix? i can craft and shoot..... but still says undefined in craft uui
 
Top