Multiple Rewards
Want to give player multiple items from one reward?
Important Information:
Using multipleRewards option will not assign reward provided in main Reward Object, in this case main reward object is used only to showcase item in container UI - So you can add some image and label for example: "Mystery Items" and some photo of mystery box!
Object to give multiple rewards to player:
multipleRewards = {
{
modelName = "firework1",
type = "item",
quantity = 5,
},
{
modelName = "rolex",
type = "item",
quantity = 15,
},
}
Example Reward Configuration:
{
modelName = "",
--- @param multipleRewards is Optional! If its enabled it will not give reward model above, it will showcase only the item above in UI.
--- Important: MultipleRewards can not be vehicles.
multipleRewards = {
{
modelName = "firework1",
type = "item",
quantity = 5,
},
{
modelName = "rolex",
type = "item",
quantity = 15,
},
},
label = "Mystery box with Items",
img = "https://cdn-icons-png.flaticon.com/512/6662/6662934.png",
rarity = "gold", -- blue/purple/red/gold
type = "item", -- item/car/money
quantity = 1, -- always set it to 1 if it's multipleRewards
price = 0, -- resell price of mystery reward!
}
Last updated