0r_motels | with 0r_lib that is OPEN SOURCE |

posted 13-06-2024 18:10 2.589 views 17 replies 100 Credits
skylarmfer
0 Posts
500 Credits
N/A Since
#1 2.589 views 17 replies
Or_lib Proofs : [attachment removed][attachment removed] FULL RESOURCES : [attachment removed] PREVIEW OF MOTEL SYSTEM:


[/attachment][/attachment][/attachment]
replies (17)
Narko93
295 Posts
334 Credits
Jun 2023 Since
#1
i really like it thanks
Striker9090
172 Posts
49,321 Credits
Dec 2022 Since
#2
If you have 0r-house unlocked give you extra 300 credit
bobaflexx.
241 Posts
3,854 Credits
Feb 2024 Since
#3

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

I give too +300 credit for it
rebelfinatic
62 Posts
59 Credits
Jun 2024 Since
#4
This is insane keep up the great releases, would love 0r-house as well.
ArcsGlobal
12 Posts
277 Credits
Jun 2023 Since
#5
not work

[attachment removed][/attachment]
xTomatomanx
86 Posts
4,348 Credits
Jun 2023 Since
#6
I will get this soon, thanks :)
2k14
939 Posts
14,875 Credits
Jan 2022 Since
#7

skylarmfer,
Or_lib Proofs :
[attachment removed][attachment removed]

FULL RESOURCES :

[attachment removed]

PREVIEW OF MOTEL SYSTEM:




for real man this much lol[/attachment][/attachment][/attachment]
skylarmfer
10 Posts
500 Credits
Mar 2024 Since
#8

ArcsGlobal,
not work

[attachment removed]

u can rework the server side of it, its not always a drag and drop[/attachment]
ArcsGlobal
12 Posts
277 Credits
Jun 2023 Since
#9

skylarmfer,
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
ArcsGlobal
12 Posts
277 Credits
Jun 2023 Since
#10
I fixed the 0r_lib script, I have it.
ArcsGlobal
12 Posts
277 Credits
Jun 2023 Since
#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]
fuckfinn
147 Posts
48 Credits
Jan 2024 Since
#12
thank you so much for this
mrtress03
216 Posts
43 Credits
Mar 2023 Since
#13
thank you so much for this
dilankaushalya356
58 Posts
260 Credits
May 2022 Since
#14
Now

ArcsGlobal,
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]
Hasaniukas
189 Posts
1,777 Credits
Nov 2021 Since
#15

dilankaushalya356,
Now

Now it works right??

No, it not works ... ...
dilankaushalya356
58 Posts
260 Credits
May 2022 Since
#16

Hasaniukas,
No, it not works ... ...

Ok Thanks let me know
zwaardkoning
295 Posts
119 Credits
Jul 2023 Since
#17
I love this thank you man!

You must be logged in to reply

Login Register