Config Preview
π§ See the current config files
Dream Market Stalls Config
DreamCore.lua
DreamLocales = {} -- Do not touch this!!!
DreamCore = {} -- Do not touch this!!!
-- Dream Marketstalls Settings
DreamCore.Language = 'de'
DreamCore.ProfitCalculation = function(retailPrice)
local profit = math.floor(retailPrice * 0.25)
return profit
end
DreamCore.Items = {
-- You can use the following client events
-- dream_stalls:addHeal | value: INT
-- dream_stalls:removeHeal | value: INT
-- dream_stalls:addArmor | value: INT
-- dream_stalls:removeArmor | value: INT
['burger'] = {
use = function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('burger', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('dream_stalls:addHeal', source, 25) -- Add Health
end
},
['hotdog'] = {
use = function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('hotdog', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('dream_stalls:addHeal', source, 35) -- Add Health
TriggerClientEvent('dream_stalls:addArmor', source, 25) -- Add Armor
end
},
['apple'] = {
use = function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('hotdog', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('dream_stalls:addHeal', source, 25) -- Add Health
end
},
['banana'] = {
use = function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('hotdog', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('dream_stalls:addHeal', source, 25) -- Add Health
end
},
['donut'] = {
use = function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('hotdog', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('dream_stalls:removeHeal', source, 15) -- Add Health
TriggerClientEvent('dream_stalls:addArmor', source, 25) -- Add Armor
end
},
}
DreamCore.Peds = {
{
model = 's_m_m_linecook',
pos = vector3(152.3075, -970.5506, 29.091),
heading = 270.9399
},
}
DreamCore.Standings = {
{
prop = 'prop_fruitstand_b',
name = '',
banner = {'shopui_title_conveniencestore', 'shopui_title_conveniencestore'},
showMarker = true,
radius = 2.0,
business = {
price = 2500,
retailPrice = 1500,
},
items = {
{
name = 'Banane',
item = 'banana',
price = 100
},
{
name = 'Apfel',
item = 'apple',
price = 350
}
}
},
{
prop = 'prop_burgerstand_01',
name = '',
banner = {'shopui_title_conveniencestore', 'shopui_title_conveniencestore'},
showMarker = false,
radius = 2.0,
business = {
price = 2500,
retailPrice = 1500,
},
items = {
{
name = 'Burger',
item = 'burger',
price = 250
}
}
},
{
prop = 'prop_hotdogstand_01',
name = '',
banner = {'shopui_title_conveniencestore', 'shopui_title_conveniencestore'},
showMarker = true,
radius = 2.0,
business = {
price = 2500,
retailPrice = 1500,
},
items = {
{
name = 'HotDog',
item = 'hotdog',
price = 550
}
}
},
{
prop = 'prop_food_van_01',
name = '',
banner = {'shopui_title_conveniencestore', 'shopui_title_conveniencestore'},
showMarker = false,
radius = 2.0,
business = {
price = 2500,
retailPrice = 1500,
},
items = {
{
name = 'HotDog',
item = 'hotdog',
price = 550
}
}
},
{
prop = 'prop_food_van_02',
name = '',
banner = {'shopui_title_conveniencestore', 'shopui_title_conveniencestore'},
showMarker = false,
radius = 2.0,
business = {
price = 2500,
retailPrice = 1500,
},
items = {
{
name = 'Donut',
item = 'donut',
price = 150
}
}
},
}
Dream Market Stalls Locales
Reminder: You can create your own locale file in your language π
en.lua
DreamLocales['en'] = {
['StallHelpNotify'] = 'Press ~g~E~s~ to open the ~o~stand~s~\nPress ~g~B~s~ to ~b~manage~s~',
-- Purchase
['PurchaseDesc'] = 'What would you like to buy?',
['PurchaseNotEnoughMoney'] = 'You don\'t have enough money. You need ~g~$%s~s~',
['PurchaseNotEnoughSpace'] = 'You cannot carry any more ~o~%s~s~',
['PurchaseItemDesc'] = 'Purchase a ~o~%s~s~ for ~g~$%s~s~',
['PurchaseSuccess'] = 'You have purchased a ~o~%s~s~',
-- Business
['BusinessDesc'] = 'Welcome to the management menu',
['BusinessNotOwned'] = 'This stand is ~g~available~s~',
['BusinessOwned'] = 'This stand is ~r~not available~s~',
['BusinessOwnedNotify'] = 'This stand is ~r~not available~s~',
['BusinessNotEnoughMoney'] = 'You don\'t have enough money. You need ~g~$%s~s~',
['BusinessPurchaseSucess'] = 'You have purchased stand ~b~#%s~s~',
['BusinessPrice'] = 'Price',
['BusinessPurchase'] = '~b~Buy this stand~s~',
['BusinessProfit'] = 'Profit: ~g~$%s~s~',
['BusinessAllTransaction'] = 'All Transactions',
['BusinessAllTransactionHeaderLeft'] = '~t~Profit (Sale Price)~s~',
['BusinessAllTransactionHeaderRight'] = '~t~Balance~s~',
['BusinessPayoutBalance'] = '~g~Payout Profit~s~',
['BusinessPayoutBalanceDesc'] = 'You can currently payout ~g~$%s~s~',
['BusinessPayoutNothing'] = 'You have no earnings',
['BusinessPayoutSuccess'] = 'You have paid out ~g~$%s~s~',
['BusinessSellStall'] = '~r~Sell Stand~s~',
['BusinessSellStallDesc'] = 'You can sell this stand for ~r~$%s~s~',
}
Last updated