Theme editor

STANDALONE 0r-craft + 0r-lib | Pack Leak

Striker9090

Well-known member
Joined
Dec 12, 2022
Messages
204
Reaction score
0
Points
16
Credits
47,560
Thread owner
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:


 
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=-
Appreciate it brother ! Thanks
 
If is working like you say why you dont put proof for that? Because its same 0r_lib from forum which one is not working with 0r-motel and 0r-craft.
 
Recreating the server sided functions of the 0r-lib is easy
lol, then why people write that is working 100% if is not true and need to edit something? people bought it and have problems if they dont know how to code... if it easy why is not full 0r_lib script with server side?
 
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=-
it does cost a lot respect
 
As a result, the script does not work, it is faulty. If you're sharing, you have to do it yourself
 
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, [HASH=1444]#charset[/HASH]), math.random(1, [HASH=1444]#charset[/HASH]))
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)
 
Back
Top Bottom