• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

STANDALONE 0r-craft + 0r-lib | Pack Leak (2 Viewers)

kyle337

Member
Dec 30, 2023
44
3
8
Credits
89
0r_lib/server.main.lua
There are some problems, add some and let's put it together.


Resmon = {}
Resmon.Callbacks = {}
Resmon.UsableItems = {}

-- Callback fonksiyonları
function Resmon.RegisterCallback(name, callback)
Resmon.Callbacks[name] = callback
end

function Resmon.TriggerCallback(name, source, cb, ...)
if Resmon.Callbacks[name] then
Resmon.Callbacks[name](source, cb, ...)
else
print("Callback " .. name .. " bulunamadı.")
end
end

-- Usable item fonksiyonları
function Resmon.RegisterUsableItem(itemName, callback)
Resmon.UsableItems[itemName] = callback
end

function Resmon.UseItem(source, item)
local usableItem = Resmon.UsableItems[item.name]
if usableItem then
usableItem(source, item)
else
print("Usable item " .. item.name .. " bulunamadı.")
end
end

-- Kod oluşturma fonksiyonu
function Resmon.GenerateCode()
-- Burada bir rastgele kod oluşturabilirsiniz, örneğin:
local length = 6
local charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
local code = ""
for i = 1, length do
local randomChar = charset:sub(math.random(1, #charset), math.random(1, #charset))
code = code .. randomChar
end
return code
end

-- Oyuncu adını döndüren fonksiyon
function Resmon.GetPlayerOfflineName(owner)
-- Burada veritabanından veya başka bir kaynaktan oyuncu adını alabilirsiniz
-- Örnek dönüş:
local playerName = "Bilinmeyen Oyuncu"
-- Veritabanından oyuncu adını çekmek için örnek MySQL sorgusu:
--[[
local result = MySQL.Sync.fetchScalar("SELECT name FROM users WHERE identifier = @owner", {["@owner"] = owner})
if result then
playerName = result
end
--]]
return playerName
end

-- GetPlayerFromSource fonksiyonu (qb-core global fonksiyon örneği)
function Resmon.GetPlayerFromSource(source)
local xPlayer = QBCore.Functions.GetPlayer(source)
return xPlayer
end

-- Register the functions to Resmon.Lib
Resmon = Resmon or {}
Resmon.Lib = Resmon.Lib or {}
Resmon.Lib.Callback = Resmon.Lib.Callback or {}

Resmon.Lib.Callback.Register = Resmon.RegisterCallback
Resmon.Lib.Callback.Trigger = Resmon.TriggerCallback
Resmon.Lib.RegisterUsableItem = Resmon.RegisterUsableItem
Resmon.Lib.UseItem = Resmon.UseItem
Resmon.Lib.GenerateCode = Resmon.GenerateCode -- Register the GenerateCode function
Resmon.Lib.GetPlayerOfflineName = Resmon.GetPlayerOfflineName -- Register the GetPlayerOfflineName function
Resmon.Lib.GetPlayerFromSource = Resmon.GetPlayerFromSource -- Register the GetPlayerFromSource function

-- QB-Core'dan gerekli core objesini almak için
function QBCoreObject()
return QBCore
end

-- Exports
exports('QBCoreObject', QBCoreObject)
nice try buddy, but still not gonna work with the crafting
 

Matex3011

Active member
Dec 19, 2023
185
17
18
Credits
16
nice script, thanks for leaking
😄
 

Jaguar

New member
Mar 24, 2022
3
0
1
Credits
3
0r-Craft + 0r-lib
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completely open source.


This pack its 100% work, same my other post.
If you liked it, please leave a comment, thank you!


Preview:


-=Stripped Content=-
thankyou brother tnax for leak
 

princedj18

Active member
Mar 20, 2023
57
4
8
Credits
16
0r-Craft + 0r-lib
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completely open source.


This pack its 100% work, same my other post.
If you liked it, please leave a comment, thank you!


Preview:


-=Stripped Content=-
i want this so bad but i dont have enough credits rn
 

soundx

Active member
Aug 22, 2024
196
2
18
Credits
19
0r_lib/server.main.lua
There are some problems, add some and let's put it together.


Resmon = {}
Resmon.Callbacks = {}
Resmon.UsableItems = {}

-- Callback fonksiyonları
function Resmon.RegisterCallback(name, callback)
Resmon.Callbacks[name] = callback
end

function Resmon.TriggerCallback(name, source, cb, ...)
if Resmon.Callbacks[name] then
Resmon.Callbacks[name](source, cb, ...)
else
print("Callback " .. name .. " bulunamadı.")
end
end

-- Usable item fonksiyonları
function Resmon.RegisterUsableItem(itemName, callback)
Resmon.UsableItems[itemName] = callback
end

function Resmon.UseItem(source, item)
local usableItem = Resmon.UsableItems[item.name]
if usableItem then
usableItem(source, item)
else
print("Usable item " .. item.name .. " bulunamadı.")
end
end

-- Kod oluşturma fonksiyonu
function Resmon.GenerateCode()
-- Burada bir rastgele kod oluşturabilirsiniz, örneğin:
local length = 6
local charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
local code = ""
for i = 1, length do
local randomChar = charset:sub(math.random(1, #charset), math.random(1, #charset))
code = code .. randomChar
end
return code
end

-- Oyuncu adını döndüren fonksiyon
function Resmon.GetPlayerOfflineName(owner)
-- Burada veritabanından veya başka bir kaynaktan oyuncu adını alabilirsiniz
-- Örnek dönüş:
local playerName = "Bilinmeyen Oyuncu"
-- Veritabanından oyuncu adını çekmek için örnek MySQL sorgusu:
--[[
local result = MySQL.Sync.fetchScalar("SELECT name FROM users WHERE identifier = @owner", {["@owner"] = owner})
if result then
playerName = result
end
--]]
return playerName
end

-- GetPlayerFromSource fonksiyonu (qb-core global fonksiyon örneği)
function Resmon.GetPlayerFromSource(source)
local xPlayer = QBCore.Functions.GetPlayer(source)
return xPlayer
end

-- Register the functions to Resmon.Lib
Resmon = Resmon or {}
Resmon.Lib = Resmon.Lib or {}
Resmon.Lib.Callback = Resmon.Lib.Callback or {}

Resmon.Lib.Callback.Register = Resmon.RegisterCallback
Resmon.Lib.Callback.Trigger = Resmon.TriggerCallback
Resmon.Lib.RegisterUsableItem = Resmon.RegisterUsableItem
Resmon.Lib.UseItem = Resmon.UseItem
Resmon.Lib.GenerateCode = Resmon.GenerateCode -- Register the GenerateCode function
Resmon.Lib.GetPlayerOfflineName = Resmon.GetPlayerOfflineName -- Register the GetPlayerOfflineName function
Resmon.Lib.GetPlayerFromSource = Resmon.GetPlayerFromSource -- Register the GetPlayerFromSource function

-- QB-Core'dan gerekli core objesini almak için
function QBCoreObject()
return QBCore
end

-- Exports
exports('QBCoreObject', QBCoreObject)
 

princedj18

Active member
Mar 20, 2023
57
4
8
Credits
16
0r-Craft + 0r-lib
0r Craft with 0r lib in one pack, for ESX and QBCore. Works with Ox Inventory, QB Inventory.
It's completely open source.


This pack its 100% work, same my other post.
If you liked it, please leave a comment, thank you!


Preview:


-=Stripped Content=-
i really really want this so bad
 

Users who are viewing this thread

Top