Original post · 2y ago#1
Or_lib Proofs : [ATTACH type="full" alt="1718302078655.png"]15688[/ATTACH][ATTACH type="full" alt="1718302093000.png"]15689[/ATTACH] FULL RESOURCES : [ATTACH type="full" alt="1718302123565.png"]15690[/ATTACH] PREVIEW OF MOTEL SYSTEM: [img]/public/images/logo.png[/img]
This resource has been viewed 2879 times. Free download from the Scripts section of HighLeaks. Compatible with FiveM servers including QBCore and ESX frameworks. Installation instructions included with download. Check requirements before installing on your server. Report issues or request support through our forums. Regular updates and bug fixes provided by uploaders. Thousands of FiveM resources available for free download. Download #14957 - 0r_motels | with 0r_lib that is OPEN SOURCE |.
This resource has been viewed 2879 times. Free download from the Scripts section of HighLeaks. Compatible with FiveM servers including QBCore and ESX frameworks. Installation instructions included with download. Check requirements before installing on your server. Report issues or request support through our forums. Regular updates and bug fixes provided by uploaders. Thousands of FiveM resources available for free download. Download #14957 - 0r_motels | with 0r_lib that is OPEN SOURCE |.
Download
This file is reserved for VIP members.
21 replies
I give too +300 credit for it
[ATTACH type="full"]15696[/ATTACH]
for real man this much lol
u can rework the server side of it, its not always a drag and drop
As a result, the script does not work, it is faulty. If you're sharing, you have to do it yourself
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 = [USER=45622]@owner[/USER]", {["[USER=45622]@owner[/USER]"] = 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)
[/QUOTE]
Now it works right??
No, it not works ... ...
Ok Thanks let me know