qb uwu
unknown
plain_text
3 years ago
2.1 kB
20
Indexable
-- Server
RegisterNetEvent("qb-uwu:server:bentoBoxitems", function()
local src = source
local Player = QBCore.Functions.GetPlayer(src)
local randomToy = math.random(1, 100)
if QBCore.Functions.HasItem(src, "uwubentobox") then
-- Remove/Add these first
Player.Functions.RemoveItem("uwubentobox", 1)
Player.Functions.AddItem("uwusushi", 1)
Player.Functions.AddItem("uwububbletearose", 1)
Player.Functions.AddItem("uwubudhabowl", 1)
-- Random toy shit?
if randomToy < 45 then
QBCore.Functions.Notify(src, "Karen stole your toy :(", "uwu")
elseif randomToy == 69 then
Player.Functions.AddItem("uwu_toy1", 1)
TriggerClientEvent("inventory:client:ItemBox", src, QBCore.Shared.Items["uwu_toy1"], "add")
elseif randomToy > 45 and randomToy < 53 then
Player.Functions.AddItem("uwu_toy2", 1)
TriggerClientEvent("inventory:client:ItemBox", src, QBCore.Shared.Items["uwu_toy2"], "add")
QBCore.Functions.Notify(src, "^=◕ᴥ◕=^ lucky you! :)", "uwu")
elseif randomToy == 54 then
Player.Functions.AddItem("uwu_toy3", 1)
TriggerClientEvent("inventory:client:ItemBox", src, QBCore.Shared.Items["uwu_toy3"], "add")
QBCore.Functions.Notify(src, "^=◕ᴥ◕=^ lucky you! :)", "uwu")
elseif randomToy > 55 and randomToy < 69 then
Player.Functions.AddItem("uwu_toy4", 1)
TriggerClientEvent("inventory:client:ItemBox", src, QBCore.Shared.Items["uwu_toy3"], "add")
QBCore.Functions.Notify(src, "^=◕ᴥ◕=^ lucky you! :)", "uwu")
elseif randomToy > 70 and randomToy < 85 then
Player.Functions.AddItem("uwu_toy4", 1)
TriggerClientEvent("inventory:client:ItemBox", src, QBCore.Shared.Items["uwu_toy4"], "add")
QBCore.Functions.Notify(src, "^=◕ᴥ◕=^ lucky you! :)", "uwu")
else
QBCore.Functions.Notify(src, "Karen stole your toy :(", "uwu")
end
end
end)Editor is loading...