Messages
172
Reactions
3
Credits
49,546
Joined
Dec 2022
Messages
140
Reactions
0
Credits
17,992
Joined
Jan 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...
Appreciate it brother ! Thanks
Messages
122
Reactions
0
Credits
2,322
Joined
Sep 2023
Messages
172
Reactions
3
Credits
49,546
Joined
Dec 2022
Messages
172
Reactions
3
Credits
49,546
Joined
Dec 2022
igorMendes,
wrote:
its fake!!! its a virus!!!! refund my credits!
Where? fake man .. .
Messages
188
Reactions
0
Credits
1,716
Joined
Nov 2021
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.
Messages
105
Reactions
1
Credits
7,099
Joined
Oct 2021
Messages
188
Reactions
0
Credits
1,716
Joined
Nov 2021
Begraafplaats,
wrote:
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?
Messages
1
Reactions
0
Credits
4
Joined
Jun 2024
Messages
86
Reactions
0
Credits
5,150
Joined
Jun 2023
Messages
925
Reactions
23
Credits
13,974
Joined
Jan 2022
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...
it does cost a lot respect
Messages
12
Reactions
0
Credits
267
Joined
Jun 2023
Messages
74
Reactions
0
Credits
5,890
Joined
May 2022
Begraafplaats,
wrote:
Recreating the server sided functions of the 0r-lib is easy
Why hasn't anyone done it?
Messages
105
Reactions
1
Credits
7,099
Joined
Oct 2021
Missxng,
wrote:
Why hasn't anyone done it?
I think because 90% of the people are lazy or don't know how to code
Messages
74
Reactions
0
Credits
5,890
Joined
May 2022
Begraafplaats,
wrote:
I think because 90% of the people are lazy or don't know how to code
would you do the honors?
Messages
197
Reactions
8
Credits
1,229
Joined
May 2024
Begraafplaats,
wrote:
I think because 90% of the people are lazy or don't know how to code
do the honor please <3
Messages
12
Reactions
0
Credits
267
Joined
Jun 2023
As a result, the script does not work, it is faulty. If you're sharing, you have to do it yourself
Messages
12
Reactions
0
Credits
267
Joined
Jun 2023
Messages
41
Reactions
0
Credits
519
Joined
Dec 2023
Begraafplaats,
wrote:
I think because 90% of the people are lazy or don't know how to code
90% of people saying "people are lazy or don't know how to code" can't code too
Messages
12
Reactions
0
Credits
267
Joined
Jun 2023
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)[/item][/itemname][/name][/name][/name]
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)[/item][/itemname][/name][/name][/name]
Messages
41
Reactions
0
Credits
519
Joined
Dec 2023
ArcsGlobal,
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 = {}
-...
nice try buddy, but still not gonna work with the crafting[/item][/itemname][/name][/name][/name]