RiP-Cases
With adaptive sounds and an uncluttered design, RiP-Cases is the perfect way to give your players items, money or cars in an exciting way.
Config
Some options are explained here. However this does not represent the original config file.
RiP.Cases
With this option you can create more cases. Just copy the code below and paste it under the last case in your config.
When you start the script, the case items will be created automaticly but before you can use them you have to restart your server.
['case'] = { -- [STRING] unique item/case name
Name = "Test-Case", -- [STRING] case label
Profits = { -- [ARRAY] case winnings
{
Type = 'money', -- [STRING] the different winning types are explained below
Probability = 100, -- [INTEGER] probability of winning (divided among all wins maximum 100)
Amount = 100000,
Label = '100.000$',
Image = 'img/money.png'
},
}
},
RiP.Discord
Discord logs for all case uses.
RiP.Discord = {
Enable = true, -- [BOOLEAN] enable/disable discord logs
Webhook = 'https://discord.com/api/webhooks/', -- [STRING] discord webhook
Name = 'RiP-Cases', -- [STRING] webhook name & titel
Color = 10181046 -- [INTEGER] webhook color
}
Winings
Money
{
Type = 'money',
Probability = 99,
Amount = 10000, -- [INTEGER] money amount
Label = '10.000€', -- [STRING] money label
Image = 'img/money.png' -- [STRING] item image (img/image.png or image link)
},
Blackmoney
{
Type = 'blackmoney',
Probability = 99,
Amount = 10000, -- [INTEGER] money amount
Label = '10.000€ Schwarzgeld', -- [STRING] money label
Image = 'img/blackmoney.png' -- [STRING] item image (img/image.png or image link)
},
Coins
Use RiP-Coins as a reward
{
Type = 'coins',
Probability = 99,
Amount = 1000, -- [INTEGER] coins amount
Label = '1000 RiP-Coins', -- [STRING] coins label
Image = 'img/hamburger.png' -- [STRING] coin image (img/image.png or image url)
},
Item
{
Type = 'item',
Probability = 99,
Amount = 10, -- [INTEGER] item amount
Name = 'burger', -- [STRING] item name
Label = 'Burger', -- [STRING] item label
Image = 'img/hamburger.png' -- [STRING] item image (img/image.png or image link)
},
Vehicle
{
Type = 'vehicle',
Probability = 99,
VehicleType = 'car', -- [STRING] vehicle type (for sql/garages)
Name = 't20', -- [STRING] vehicle (spawn) name
Label = 'T20', -- [STRING] vehicle label
Image = 'img/keys.png' -- [STRING] item image (img/image.png or image link)
},
Reroll
{
Type = 'reroll',
Probability = 1,
Label = 'Reroll', -- [STRING] label
Image = 'img/reroll.png' -- [STRING] image (img/image.png or image link)
},