add it in vrp/cfg/items
i got a problem with the slot machine only letting players win so atm it’s just easy money making
Hey guys, could you help me? I’m trying to make permissions to use casino but doesn’t work.
That’s the code
casinoCasier_menu["Comprar fichas"] = {function(player, choice)
local user_id = vRP.getUserId({player})
if(user_id ~= nil and vRP.hasPermission(user_id,"casino.perm")) then
vRP.prompt({player, "Comprar fichas:", "", function(player, tokenNr)
if(tokenNr ~= "" and tokenNr ~= nil)then
if(tonumber(tokenNr))then
tokenNr = tonumber(tokenNr)
if(tokenNr > 0) and (tokenNr <= 999)then
local totalPrice = tokenNr * 100000
if(vRP.tryPayment({user_id, totalPrice}))then
vRPclient.notify(player, {"[CASINO] ~g~Pagaste ~r~$"..totalPrice.." ~g~por ~y~"..tokenNr.." fichas"})
vRP.giveInventoryItem({user_id,"ficha_casino",tokenNr,false})
vRP.closeMenu({player})
else
vRPclient.notify(player, {"[CASINO] ~r~Não tens dinheiro suficiente para ~y~"..tokenNr.." fichas"})
end
else
vRPclient.notify(player, {"[CASINO] ~r~Tens de adicionar um número entre 0 e 99!"})
end
else
vRPclient.notify(player, {"[CASINO] ~r~Tens de colocar um número de fichas!"})
end
else
vRPclient.notify(player, {"[CASINO] ~r~Tens de colocar um número de fichas!"})
end
end})
end
end, ""}
Hello! Work on vrpex? I want to put on, my diamond casino thanks