Messages
172
Reactions
3
Credits
49,546
Joined
Dec 2022
Messages
34
Reactions
0
Credits
6
Joined
Nov 2023
Messages
523
Reactions
1
Credits
231
Joined
Jun 2023
Striker9090,
wrote:
0r-Craft + 0r-lib
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completel...
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completel...
This leak is so nice !!!
Messages
13
Reactions
0
Credits
24
Joined
Jul 2024
Striker9090,
wrote:
0r-Craft + 0r-lib
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completel...
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completel...
good one nice bro asowm
Messages
256
Reactions
0
Credits
3
Joined
Jan 2025
Messages
92
Reactions
0
Credits
384
Joined
Jun 2022
soundx,
wrote:
0r_lib/server.main.lua
There are some problems, add some and let's put it together.
Resmon = {}
Resmon.Callbacks = {}
Resmon.UsableItems = {}
-...
There are some problems, add some and let's put it together.
Resmon = {}
Resmon.Callbacks = {}
Resmon.UsableItems = {}
-...
go to 0r-craft and go to the bottom of page and replace this code, it is working without the lib, make sure you insert database file
function Koci.Server.Craft:InsertQueueToDB(xPlayer, item, canItBeCraftable)
if not xPlayer or not item then return -1 end
local user = xPlayer.identifier or xPlayer.PlayerData.citizenid or "unknown"
local name = item.name or "unknown"
local label = item.label or "Without name"
local count = item.count or 1
local image = item.image or ""
local ingredients = item.ingredients or {}
local encodedIngredients = json.encode(ingredients)
local propModel = item.propModel or ""
local price = item.price or 0
local canCraft = canItBeCraftable and 1 or 0
local status = item.status or "waiting"
local timestamp = os.date('%Y-%m-%d %H:%M:%S')
local insertId = -1
exports.oxmysql:insert([[
INSERT INTO `0r_crafting_queue`
(`user`, `name`, `label`, `count`, `image`, `ingredients`, `propModel`, `price`, `canItBeCraftable`, `status`, `created_at`, `updated_at`)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
]], {
user, name, label, count, image, encodedIngredients, propModel, price, canCraft, status, timestamp, timestamp
}, function(id)
insertId = id or -1
print(('[Crafting] Inserting in database %s | Item: %s | ID: %s'):format(user, name, insertId))
end)
return insertId
end[/crafting][/item][/itemname][/name][/name][/name]
Messages
6
Reactions
0
Credits
54
Joined
Jan 2024
DAdada,
wrote:
go to 0r-craft and go to the bottom of page and replace this code, it is working without the lib, make sure you insert database file
function Koci.Se...
function Koci.Se...
You have some DB inconsistencies in your code. Here is the correct version.
server -> function.lua
change
function Koci.Server.Craft:InsertQueueToDB(xPlayer, item, canItBeCraftable)
if Koci.ResmonLib then
local _id = Koci.ResmonLib.Craft.InsertQueueToDB(xP...
if Koci.ResmonLib then
local _id = Koci.ResmonLib.Craft.InsertQueueToDB(xP...
replace with
function Koci.Server.Craft:InsertQueueToDB(xPlayer, item, canItBeCraftable)
if not xPlayer or not item then return -1 end
local user = xPlayer.identif...
if not xPlayer or not item then return -1 end
local user = xPlayer.identif...
client -> variables.lua
server -> variables.lua
delete
Koci.ResmonLib = Utils.Functions:GetResmonLib()
shared -> utils.lua
delete
function Utils.Functions:GetResmonLib()
if self:hasResource("0r_lib") then
return exports["0r_lib"]:GetCoreObject().Lib
else
Creat...
if self:hasResource("0r_lib") then
return exports["0r_lib"]:GetCoreObject().Lib
else
Creat...
Messages
16
Reactions
0
Credits
12
Joined
May 2025
DAdada,
wrote:
go to 0r-craft and go to the bottom of page and replace this code, it is working without the lib, make sure you insert database file
function Koci.Se...
function Koci.Se...
is it for qb or esx serveur[/crafting]
Messages
27
Reactions
0
Credits
2
Joined
May 2025
Messages
509
Reactions
0
Credits
596
Joined
Aug 2021
Messages
2
Reactions
0
Credits
43
Joined
Aug 2025
Striker9090,
wrote:
0r-Craft + 0r-lib
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completel...
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completel...
man im short 30 points 😥