Config Preview
π§ See the current config files
Dream Vending
DreamCore.lua
DreamLocales = {} -- Do not touch this!!!
DreamFramework = {} -- Do not touch this!!!
DreamCore = {} -- Do not touch this!!!
-- Dream Vending Settings
DreamCore.Language = 'en'
DreamCore.GiveCredits = true -- Set to false if you don't want to give credits
DreamCore.Debug = true -- Set to false if you don't want to see debug messages in the console
DreamCore.UIColors = { -- Set the color of the UI
normal = '#9b2dff',
active = '#8400ff'
}
DreamCore.Items = { -- You can make your items usable through our system. If you have another resource that handles an item, simply remove the entry here/ do not create an entry.
-- Learn more about the ApplyItemEffects API on our docs: https://docs.dream-services.eu/product/dream-vending/item-use-effect-api
-- Drinks
['mocha'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 2 },
{ type = 'drinkAnim', prop = 'ng_proc_coffee_01a' }
})
end
},
['cola'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 2 },
{ type = 'drinkAnim', prop = 'prop_ecola_can' }
})
end
},
['sprunk'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 2 },
{ type = 'drinkAnim', prop = 'h4_prop_club_tonic_can' }
})
end
},
['orangejuice'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 5 },
{ type = 'drinkAnim', prop = 'prop_orang_can_01' }
})
end
},
['icedtea'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 3 },
{ type = 'drinkAnim', prop = 'v_res_tt_can01' }
})
end
},
['energydrink'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 15 },
{ type = 'drinkAnim', prop = 'sf_prop_sf_can_01a' }
})
end
},
['lemonade'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 4 },
{ type = 'drinkAnim', prop = 'prop_food_cb_juice01' }
})
end
},
['grapejuice'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 3 },
{ type = 'drinkAnim', prop = 'prop_food_cb_juice01' }
})
end
},
['fruitpunch'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 6 },
{ type = 'drinkAnim', prop = 'prop_food_cb_juice01' }
})
end
},
['milk'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 8 },
{ type = 'drinkAnim', prop = 'v_res_tt_milk' }
})
end
},
['hotchocolate'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 4 },
{ type = 'drinkAnim', prop = 'ng_proc_coffee_01a' }
})
end
},
['smoothie'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 8 },
{ type = 'addArmor', amount = 5 },
{ type = 'drinkAnim', prop = 'prop_orang_can_01' }
})
end
},
-- Snacks
['chips'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 2 },
{ type = 'eatAnim', prop = 'ng_proc_food_chips01a' }
})
end
},
['chocolate'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 3 },
{ type = 'eatAnim', prop = 'prop_choc_meto' }
})
end
},
['donut'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 4 },
{ type = 'eatAnim', prop = 'prop_donut_02' }
})
end
},
['cookie'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 3 },
{ type = 'eatAnim', prop = 'prop_food_cb_bag_01' }
})
end
},
['sandwich'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 6 },
{ type = 'eatAnim', prop = 'prop_sandwich_01' }
})
end
},
['candy'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 1 },
{ type = 'eatAnim', prop = 'prop_candy_pqs' }
})
end
},
['muffin'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 3 },
{ type = 'eatAnim', prop = 'prop_food_cb_bag_01' }
})
end
},
['cracker'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 2 },
{ type = 'eatAnim', prop = 'prop_food_cb_bag_01' }
})
end
},
['popcorn'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 2 },
{ type = 'eatAnim', prop = 'prop_food_bag1' }
})
end
},
['nuts'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addHeal', amount = 2 },
{ type = 'eatAnim', prop = 'prop_bar_nuts' }
})
end
},
-- Coffee
['coffee'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 3 },
{ type = 'drinkAnim', prop = 'ng_proc_coffee_01a' }
})
end
},
-- Alcohol
['mojito'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 5 },
{ type = 'drinkAnim', prop = 'prop_mojito' },
{ type = 'drunk', timeout = 5000, veryDrunk = false, intensity = 0.1 }
})
end
},
['swimmingpool'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 5 },
{ type = 'drinkAnim', prop = 'prop_cocktail' },
{ type = 'drunk', timeout = 7000, veryDrunk = false, intensity = 0.1 }
})
end
},
['pina_colada'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 5 },
{ type = 'drinkAnim', prop = 'prop_pinacolada' },
{ type = 'drunk', timeout = 6500, veryDrunk = false, intensity = 0.2 }
})
end
},
['mai_tai'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 5 },
{ type = 'drinkAnim', prop = 'mai_tai' },
{ type = 'drunk', timeout = 9000, veryDrunk = false, intensity = 0.1 }
})
end
},
['whiskey_sour'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 15 },
{ type = 'drinkAnim', prop = 'prop_whiskey_bottle' },
{ type = 'drunk', timeout = 10000, veryDrunk = true, intensity = 1.3 }
})
end
},
['cosmopolitan'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 5 },
{ type = 'drinkAnim', prop = 'prop_cocktail' },
{ type = 'drunk', timeout = 11000, veryDrunk = false, intensity = 0.1 }
})
end
},
['beer'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 2 },
{ type = 'drinkAnim', prop = 'prop_sh_beer_pissh_01' }
})
end
},
['vodka'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 25 },
{ type = 'drinkAnim', prop = 'prop_vodka_bottle' },
{ type = 'drunk', timeout = 11000, veryDrunk = true, intensity = 1.6 }
})
end
},
['rum'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 15 },
{ type = 'drinkAnim', prop = 'prop_rum_bottle' },
{ type = 'drunk', timeout = 13000, veryDrunk = true, intensity = 1.5 }
})
end
},
['tequila'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 20 },
{ type = 'drinkAnim', prop = 'prop_tequila_bottle' },
{ type = 'drunk', timeout = 16000, veryDrunk = true, intensity = 1.7 }
})
end
},
['gin'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 10 },
{ type = 'drinkAnim', prop = 'prop_bottle_brandy' },
{ type = 'drunk', timeout = 3500, veryDrunk = true, intensity = 1.2 }
})
end
},
['wine'] = {
use = function(playerId)
TriggerClientEvent('dream_vending:client:ApplyItemEffects', playerId, {
{ type = 'addArmor', amount = 50 },
{ type = 'drinkAnim', prop = 'prop_wine_bot_01' },
{ type = 'drunk', timeout = 25000, veryDrunk = true, intensity = 0.2 }
})
end
},
}
DreamCore.VendingStockRefillCheckInterval = 15 * 60 * 1000 -- In ms | Example: Check every 15 minutes
DreamCore.MaxCustomVendingRangeDistance = 100.0 -- In which area distance a custom vending is spawned and removed when leaving.
DreamCore.VendingAnimation = {
looking = { 'anim@amb@business@bgen@bgen_inspecting@', 'inspecting_low_lookingaround_inspector' }
}
DreamCore.DefaultVendingProps = {
-- Drinks Machine
{
models = { 'prop_vend_soda_01', 'prop_vend_soda_02' },
label = 'Soda Machine',
icon = 'fa-solid fa-wine-bottle',
distance = 3.0,
secret = false, -- Set to true if you want to blur the code and input (e.g. for secret vending machines, when streamer know the code and viewers don't)
blip = { -- Don't recommend for default vendings
usage = false,
sprite = 0,
scale = 0.0,
color = 0
},
items = {
[1] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'mocha',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/mocha.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[2] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'cola',
prop = 'prop_ecola_can',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/cola.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[3] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'sprunk',
prop = 'h4_prop_club_tonic_can',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/sprunk.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[4] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'orangejuice',
prop = 'prop_orang_can_01',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/orangejuice.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[5] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'icedtea',
prop = 'v_res_tt_can01',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/icedtea.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[6] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'energydrink',
prop = 'sf_prop_sf_can_01a',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/energydrink.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[7] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'lemonade',
prop = 'prop_food_cb_juice01',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/lemonade.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[8] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'grapejuice',
prop = 'prop_food_cb_juice01',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/grapejuice.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[9] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'fruitpunch',
prop = 'prop_food_cb_juice01',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/fruitpunch.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[10] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'milk',
prop = 'v_res_tt_milk',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/milk.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[11] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'hotchocolate',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/hotchocolate.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[12] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'smoothie',
prop = 'prop_orang_can_01',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/smoothie.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
}
}
},
-- Snack Machine
{
models = { 'prop_vend_snak_01' },
label = 'Snack Machine',
icon = 'fa-solid fa-cookie-bite',
distance = 3.0,
secret = false, -- Set to true if you want to blur the code and input (e.g. for secret vending machines, when streamer know the code and viewers don't)
blip = { -- Don't recommend for default vendings
usage = false,
sprite = 0,
scale = 0.0,
color = 0
},
items = {
[1] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'chips',
prop = 'ng_proc_food_chips01a',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/chips.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[2] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'chocolate',
prop = 'prop_choc_meto',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/chocolate.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[3] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'donut',
prop = 'prop_donut_02',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/donut.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[4] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'cookie',
prop = 'prop_food_cb_bag_01',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/cookie.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[5] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'sandwich',
prop = 'prop_sandwich_01',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/sandwich.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[6] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'candy',
prop = 'prop_candy_pqs',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/candy.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[7] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'muffin',
prop = 'prop_food_cb_bag_01',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/muffin.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[8] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'cracker',
prop = 'prop_food_cb_bag_01',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/cracker.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[9] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'popcorn',
prop = 'prop_food_bag1',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/popcorn.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[10] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'nuts',
prop = 'prop_bar_nuts',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/nuts.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[11] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'granola',
prop = 'prop_food_bag1',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/granola.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[12] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'pretzel',
prop = 'prop_food_bag1',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/pretzel.png',
price = 1000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
}
}
},
-- Coffee Machine
{
models = { 'prop_vend_coffe_01' },
label = 'Coffee Machine',
icon = 'fa-solid fa-mug-hot',
distance = 3.0,
secret = false, -- Set to true if you want to blur the code and input (e.g. for secret vending machines, when streamer know the code and viewers don't)
blip = { -- Don't recommend for default vendings
usage = false,
sprite = 0,
scale = 0.0,
color = 0
},
items = {
[1] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[2] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[3] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[4] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[5] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[6] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[7] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[8] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[9] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[10] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[11] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[12] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'coffee',
prop = 'ng_proc_coffee_01a',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/coffee.png',
price = 150,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
}
}
},
-- Water Machine
{
models = { 'prop_watercooler' },
label = 'Water Machine',
icon = 'fa-solid fa-bottle-water',
distance = 3.0,
secret = false, -- Set to true if you want to blur the code and input (e.g. for secret vending machines, when streamer know the code and viewers don't)
blip = { -- Don't recommend for default vendings
usage = false,
sprite = 0,
scale = 0.0,
color = 0
},
items = {
[1] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[2] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[3] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[4] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[5] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[6] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[7] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[8] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[9] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[10] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[11] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[12] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'water',
prop = 'prop_cs_paper_cup',
endPropAnim = { "mp_common_miss", "put_away_coke" },
image = './pics/items/water.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
}
}
}
}
DreamCore.CustomVendingProps = {
-- Weapon Machine
{
model = 'prop_vend_snak_01',
locations = {
{ coords = vector3(-425.6560, 1207.8633, 325.7583), heading = 75.0 }
},
label = 'Weapon Vending Machine',
icon = 'fa-solid fa-gun',
distance = 3.0,
secret = false, -- Set to true if you want to blur the code and input (e.g. for secret vending machines, when streamer know the code and viewers don't)
blip = {
usage = true,
sprite = 150,
scale = 0.8,
color = 0
},
items = {
[1] = {
code = '187', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_PISTOL',
prop = 'WEAPON_PISTOL',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_PISTOL.png',
price = 350,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[2] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_APPISTOL',
prop = 'WEAPON_APPISTOL',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_APPISTOL.png',
price = 500,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[3] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_MINISMG',
prop = 'WEAPON_MINISMG',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_MINISMG.png',
price = 850,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[4] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_COMBATPDW',
prop = 'WEAPON_COMBATPDW',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_COMBATPDW.png',
price = 1500,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[5] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_MICROSMG',
prop = 'WEAPON_MICROSMG',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_MICROSMG.png',
price = 1100,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[6] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_SMG',
prop = 'WEAPON_SMG',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_SMG.png',
price = 1250,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[7] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_ASSAULTSMG',
prop = 'WEAPON_ASSAULTSMG',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_ASSAULTSMG.png',
price = 2000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[8] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_MACHETE',
prop = 'WEAPON_MACHETE',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_MACHETE.png',
price = 350,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[9] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_CARBINERIFLE',
prop = 'WEAPON_CARBINERIFLE',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_CARBINERIFLE.png',
price = 2750,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[10] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_ASSAULTRIFLE',
prop = 'WEAPON_ASSAULTRIFLE',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_ASSAULTRIFLE.png',
price = 3000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[11] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_GUSENBERG',
prop = 'WEAPON_GUSENBERG',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_GUSENBERG.png',
price = 3250,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[12] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'WEAPON_KNUCKLE',
prop = 'WEAPON_KNUCKLE',
endPropAnim = { nil, nil },
image = './pics/items//WEAPON_KNUCKLE.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
}
}
},
-- Alcohol Machine
{
model = 'sf_prop_sf_vend_drink_01a',
locations = {
{ coords = vector3(928.48, 53.25, 81.096), heading = -121.59 }
},
label = 'Alcohol Vending Machine',
icon = 'fa-solid fa-wine-bottle',
distance = 3.0,
secret = false, -- Set to true if you want to blur the code and input (e.g. for secret vending machines, when streamer know the code and viewers don't)
blip = {
usage = true,
sprite = 93,
scale = 0.8,
color = 7
},
items = {
[1] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'mojito',
prop = 'prop_mojito',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/mojito.png',
price = 350,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[2] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'swimmingpool',
prop = 'prop_cocktail',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/swimmingpool.png',
price = 500,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[3] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'pina_colada',
prop = 'prop_pinacolada',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/pina_colada.png',
price = 850,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[4] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'mai_tai',
prop = 'prop_cocktail',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/mai_tai.png',
price = 1500,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[5] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'whiskey_sour',
prop = 'prop_whiskey_bottle',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/whiskey_sour.png',
price = 1100,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[6] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'cosmopolitan',
prop = 'prop_cocktail',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/cosmopolitan.png',
price = 1250,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[7] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'beer',
prop = 'prop_sh_beer_pissh_01',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/beer.png',
price = 2000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[8] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'vodka',
prop = 'prop_vodka_bottle',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/vodka.png',
price = 350,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[9] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'rum',
prop = 'prop_rum_bottle',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/rum.png',
price = 2750,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[10] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'tequila',
prop = 'prop_tequila_bottle',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/tequila.png',
price = 3000,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[11] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'gin',
prop = 'prop_bottle_brandy',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/gin.png',
price = 3250,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
},
[12] = {
code = 'random', -- [random or 3 digits (e.g. 153)]
item = 'wine',
prop = 'prop_wine_bot_01',
endPropAnim = { "amb@code_human_wander_drinking@female@base", "static" },
image = './pics/items/wine.png',
price = 50,
stockRefill = {
time = 2 * 60 * 60, -- In Seconds | The time between each refill of the stock
amount = 2, -- The amount how much is filled up per refill.
maxAmount = 10, -- What is the maximum amount allowed in a vending machine?
}
}
}
}
}
DreamCore.Inventory = function()
if GetResourceState('ox_inventory') == 'started' then
return 'ox'
else
return 'default' -- For all other inventory systems which not have special systems
end
end
DreamCore.Target = function()
if GetResourceState('ox_target') == 'started' then
return 'ox'
elseif GetResourceState('qb-target') == 'started' then
return 'qb'
else
return error('No target system found! Please adjust DreamCore.Target!!!')
end
end
DreamCore.Notify = function(text, type, duration)
-- Always clientside
-- Params:
-- text: message: string
-- type: info, success, warning, error
-- duration: time in ms
-- Default Values
local type = type or 'info'
local duration = duration or 5000
-- Ox Notification (ox_lib)
lib.notify({
type = type,
position = 'center-right',
title = DreamLocales[DreamCore.Language]['NotifyHeader'],
description = text,
duration = duration
})
end
DreamCoreExt.lua
DreamCore.Webhooks = {
Enabled = true,
-- Base Data
Color = '10169855', -- Change the Color of the Webhook
Author = 'Dream Vending', -- Change the Author of the Webhook
IconURL = 'https://i.imgur.com/vDc2B6l.png', -- Change the IconURL of the Webhook
-- Webhook URLs
BuyItem = 'https://discord.com/api/webhooks/XXX/XXX',
}
Dream Vending Locales
Reminder: You can create your own locale file in your language π
en.lua
DreamLocales['en'] = {
['NotifyHeader'] = 'Vending Machine',
['VendingMachine'] = {
['BuyItem'] = {
['Error'] = {
['InvalidId'] = 'Invalid Vending Id',
['InvalidSlot'] = 'Invalid Slot Id',
['NotEnoughMoney'] = 'You do not have enough money to buy this item',
['ItemSoldOut'] = 'This item is sold out',
['ItemNotFound'] = 'This item does not exist',
},
['Success'] = {
['Weapon'] = 'You bought 1x %s for %s$',
['Item'] = 'You bought 1x %s for %s$',
}
},
['UI'] = {
['OutOfStock'] = 'OUT OF STOCK!'
}
},
}
Last updated