• VIP Lifetime 20 euro this weekend! 25 % off everything: VIP and Credits!

    Its the holiday month, therefor VIP and Credits have been reduced in price!
    VIP does not need any credits to unlock content and download it.
    Payments via Crypto: Please open a ticket, if you experience any issues, or if you miss your coin as an option in the list we have alot of wallets available.

STANDALONE 0r-craft + 0r-lib | Pack Leak (1 Viewer)

kyle337

Member
Dec 30, 2023
43
4
8
Credits
332
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
22
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
194
3
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
 
  • Post hidden due to user being banned.

Users who are viewing this thread

Top