HighLeaks
Help

0r_motels | with 0r_lib that is OPEN SOURCE |

skylarmfer skylarmfer Started 17 replies 2,459 views 100 Credits

Download Link Locked

Pay 100 credits to unlock the download link for 24 hours.

Login to unlock
#1
Or_lib Proofs : [attachment removed][attachment removed] FULL RESOURCES : [attachment removed] PREVIEW OF MOTEL SYSTEM:


[/attachment][/attachment][/attachment]
#1
i really like it thanks
#2
If you have 0r-house unlocked give you extra 300 credit
#3




Striker9090,

wrote:



If you have 0r-house unlocked give you extra 300 credit




I give too +300 credit for it
#4
This is insane keep up the great releases, would love 0r-house as well.
#5
not work



[attachment removed][/attachment]
#6
I will get this soon, thanks :)
#7




skylarmfer,

wrote:



Or_lib Proofs :

[attachment removed][attachment removed]



FULL RESOURCES :



[attachment removed]



PREVIEW OF MOTEL SYSTEM:









-=Stri...




for real man this much lol[/attachment][/attachment][/attachment]
#8




ArcsGlobal,

wrote:



not work



[attachment removed]




u can rework the server side of it, its not always a drag and drop[/attachment]
#9




skylarmfer,

wrote:



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
#10
I fixed the 0r_lib script, I have it.
#11
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]
#12
thank you so much for this
#13
thank you so much for this
#14
Now





ArcsGlobal,

wrote:



0r_lib/server.main.lua

There are some problems, add some and let's put it together.



Resmon = {}

Resmon.Callbacks = {}

Resmon.UsableItems = {}



-...




[/QUOTE]

Now it works right??[/item][/itemname][/name][/name][/name][/item][/itemname][/name][/name][/name]
#15




dilankaushalya356,

wrote:



Now



Now it works right??




No, it not works ... ...
#16




Hasaniukas,

wrote:



No, it not works ... ...




Ok Thanks let me know
#17
I love this thank you man!