Config Preview
π§ See the current config files
Dream Used Cardealer
DreamCore.lua
DreamLocales = {} -- Do not touch this!!!
DreamFramework = {} -- Do not touch this!!!
DreamCore = {} -- Do not touch this!!!
-- Dream Used Cardealer Settings
DreamCore.Language = 'en'
DreamCore.GiveCredits = true -- Set to false if you don't want to give credits
DreamCore.CreateTradeShop = 'createtradeshop' -- Command to create a trade shop
DreamCore.RemoveTradeShop = 'removetradeshop' -- Command to remove a trade shop
DreamCore.TradeShopBlip = {
show = true, -- Set to false to deactivate the blips
sprite = 225,
color = {
sale = 2,
owned = 67,
},
scale = 1.0
}
DreamCore.ManagementMenu = {
--[[
Types available:
- marker -> shows only a marker with help notify
- ped -> spawns a ped with help notify
- pedtarget -> spawns a ped with target option
--]]
type = 'marker',
ped = 's_m_m_strpreach_01' -- Use for ped or pedtarget | Find ped models here: https://docs.fivem.net/docs/game-references/ped-models/
}
DreamCore.SellingVehicleInfo = 'text' -- [text or target]
DreamCore.BuyMoneyWallet = 'bank'
DreamCore.DisableOwnMileageSystem = false -- Set to true if you don't want to use your own mileage system e.g. you using a custom different mileage system (See DreamFramework.GetMileage function in bridge/<framework>/server.lua)
DreamCore.MileageAutoSave = 5 * 60 * 1000 -- Mileage will be saved every 5 minutes
DreamCore.MileageUnit = 'km' -- [km or mi]
DreamCore.InviteCooldown = 5 * 60 * 1000 -- Cooldown for inviting a player to the trade shop
DreamCore.MaxVehiclePlaceDistance = 25.0 -- Max Distance to place a vehicle for sale
DreamCore.MaxVehicleRangeDistance = 100.0 -- In which area distance a vehicle is spawned and removed when leaving.
DreamCore.CalculateShopWorth = function(TradeShop)
return math.floor(TradeShop.getPrice() / 2)
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 Used Cardealer', -- Change the Author of the Webhook
IconURL = 'https://i.imgur.com/vDc2B6l.png', -- Change the IconURL of the Webhook
-- Webhook URLs
CreateTradeShop = 'https://canary.discord.com/api/webhooks/XXX/XXX',
BuyTradeShop = 'https://canary.discord.com/api/webhooks/XXX/XXX',
TransferTradeShop = 'https://canary.discord.com/api/webhooks/XXX/XXX',
SellTradeShop = 'https://canary.discord.com/api/webhooks/XXX/XXX',
DepositVehicle = 'https://canary.discord.com/api/webhooks/XXX/XXX',
PlaceVehicle = 'https://canary.discord.com/api/webhooks/XXX/XXX',
RemoveVehicle = 'https://canary.discord.com/api/webhooks/XXX/XXX',
ChangeVehiclePrice = 'https://canary.discord.com/api/webhooks/XXX/XXX',
SellVehicle = 'https://canary.discord.com/api/webhooks/XXX/XXX',
FireEmployee = 'https://canary.discord.com/api/webhooks/XXX/XXX',
NewEmployee = 'https://canary.discord.com/api/webhooks/XXX/XXX',
WithdrawMoney = 'https://canary.discord.com/api/webhooks/XXX/XXX'
}
Dream Used Cardealer Locales
Reminder: You can create your own locale file in your language π
en.lua
DreamLocales['en'] = {
['NotifyHeader'] = 'Used Cardealer',
['CreateTradeShop'] = {
['DistanceNotify'] = 'Your position is too near to an existing trade shop',
['NameInput'] = {
['Title'] = 'π Trade Shop',
['Label'] = 'Name',
['Description'] = 'Enter the name of the trade shop'
},
['PriceInput'] = {
['Title'] = 'π Trade Shop',
['Label'] = 'Price',
['Description'] = 'Enter the price of the trade shop',
},
['LocationNotify'] = {
['blip'] = 'Press G to set the blip location',
['purchase'] = 'Press G to set the purchase location',
['management'] = 'Press G to set the management location',
['spawn'] = 'Press G to set the spawn location',
['deposit'] = 'Press G to set the deposit location',
},
['ConfirmDialog'] = {
['Title'] = 'π Trade Shop',
['Description'] = 'π Name: %s \n πΈ Price: %s$ \n π Blip Location: %s \n π Purchase Location: %s \n π Management Location: %s \n π Spawn Location: %s \n π Deposit Location: %s\n\nAre you sure you want to create this trade shop?'
}
},
['RemoveTradeShop'] = {
['Title'] = 'π Trade Shop',
['SelectShop'] = {
['Label'] = 'Trade Shop',
['Description'] = 'Select the tradeshop you want to remove'
},
['CheckboxConfirmation'] = {
['Label'] = 'Confirm that you are sure to permanently remove'
},
['Error'] = {
['NoTradeShop'] = 'There are currently no tradeshops',
},
['Success'] = 'The Tradeshop %s (#%s) was deleted successfully!'
},
['TradeShop'] = {
['General'] = {
['NewVehicle'] = 'π New Used Vehicle π \n Your Used Cardealer Shop has a new vehicle in stock!',
['Vehicle3DText'] = '~c~%s~s~\n~b~Model~s~: %s (#%s)\n~b~Mileage~s~: %s %s\n~b~Price~s~: %s$'
},
['Player'] = {
['Employee'] = {
['InviteLabel'] = 'Invite to %s',
['InviteWaitingForAnswer'] = 'Wait for an answer to your invitation!',
['InviteAccepted'] = 'The invitation was accepted!',
['InviteDeclined'] = 'The invitation was declined!',
['InviteDialog'] = {
['Title'] = 'π Trade Shop',
['Description'] = 'π Shop: %s \n\nDo you want to work at this shop?'
},
['Error'] = {
['TargetIdInvalid'] = 'Invalid target player',
['Cooldown'] = 'Please wait a moment until you invite this player again',
['AlreadyEmployee'] = 'This player is already an employee of the shop',
}
}
},
['Vehicle'] = {
['TargetInfoVehicle'] = 'Vehicle Information',
['TargetInfoVehicleDialog'] = {
['Title'] = 'π %s',
['Description'] = 'π Vehicle: %s (#%s) \n βοΈ Mileage: %s %s \n πΈ Price: %s$ \n\nThe offer is limited and can be changed'
},
['TargetBuyVehicle'] = 'Buy Vehicle',
['TargetBuyVehicleDialog'] = {
['Title'] = 'π %s',
['Description'] = 'π Vehicle: %s (#%s) \n βοΈ Mileage: %s %s \n πΈ Price: %s$ \n\nAre you sure you want to buy this vehicle?'
},
['BuyVehicle'] = {
['Success'] = 'You have successfully purchased the vehicle! Get in and drive away...',
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['VehicleNotFound'] = 'Vehicle not found',
['PlayerNotFound'] = 'Player not found',
['NotEnoughMoney'] = 'You need more money to buy this vehicle'
}
}
},
['Blip'] = {
['Sale'] = '%s [SALE]',
['Owned'] = '%s'
},
['Purchase'] = {
['HelpNotify'] = 'Press ~g~[E]~s~ to buy ~b~%s~s~ for ~g~$%s',
['Dialog'] = {
['Title'] = 'π Trade Shop',
['Description'] = 'π Name: %s \n πΈ Price: %s$\n\nAre you sure you want to purchase this trade shop?'
},
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['NotEnoughMoney'] = 'You need ~r~$%s~s~ to purchase this trade shop'
},
['Success'] = 'You have successfully purchased the trade shop',
},
['Management'] = {
['HelpNotify'] = 'Press ~g~[E]~s~ to open the management panel',
['Ped'] = {
['TargetLabel'] = 'Open Management Panel'
},
['Menu'] = {
['Main'] = {
['Title'] = 'π Trade Shop',
['EmployeesTitle'] = 'Employees Management',
['EmployeesDesc'] = 'Manage your employees',
['VehiclesTitle'] = 'Vehicles Management',
['VehiclesDesc'] = 'Manage your vehicles',
['MoneyTitle'] = 'Money Management',
['MoneyDesc'] = 'Manage your money',
['AdministratorTitle'] = 'Administration Management',
['AdministratorDesc'] = 'Manage your business',
},
['Vehicles'] = {
['Title'] = 'π Trade Shop > Vehicles',
['NoVehicles'] = 'You do not have any vehicle',
['VehicleInStock'] = 'In Stock',
['VehicleDesc'] = 'Click to manage this vehicle',
},
['Employees'] = {
['Title'] = 'π Trade Shop > Employees',
['NoEmployees'] = 'You do not have any employees',
['EmployeeDesc'] = 'Click to manage this employee',
},
['Money'] = {
['Title'] = 'π Trade Shop > Money',
['BalanceTitle'] = 'Account Balance',
['BalanceDesc'] = 'Your company has $%s',
['WithdrawTitle'] = 'Withdraw Money',
['WithdrawDesc'] = 'Withdraw money from the company',
['WithdrawInput'] = {
['WithdrawInputTitle'] = 'πΈ Withdraw Money',
['WithdrawInputAmount'] = 'Amount',
['WithdrawInputAmountDesc'] = 'How much money do you want to withdraw?',
},
['WithdrawError'] = {
['ShopNotFound'] = 'Shop not found',
['NotEnoughMoney'] = 'You do not have enough money in the company account',
},
['WithdrawSuccess'] = 'You have successfully withdrawn $%s from the company account',
},
['Administration'] = {
['Title'] = 'π Trade Shop > Administration',
['LogTitle'] = 'History',
['LogDesc'] = 'Click to view the history',
['TransferTitle'] = 'Transfer Tradeshop',
['TransferDesc'] = 'Transfer your tradeshop',
['SellTitle'] = 'Sell Tradeshop',
['SellDesc'] = 'Sell your tradeshop',
},
['AdministrationLog'] = {
['Title'] = 'π Administration > History',
['NoLogs'] = 'There are no logs available',
['Type'] = {
['vehicle_deposit'] = {
['Title'] = 'Vehicle Deposit',
['Desc'] = 'Vehicle: #%s | %s'
},
['vehicle_place'] = {
['Title'] = 'Vehicle Placed',
['Desc'] = 'Vehicle: #%s | %s'
},
['vehicle_update_price'] = {
['Title'] = 'Vehicle Price Update',
['Desc'] = 'Vehicle: #%s | Price: %s$ | %s'
},
['vehicle_sold'] = {
['Title'] = 'Vehicle Sold',
['Desc'] = 'Vehicle: #%s | Price: %s$ | %s'
},
['employee_new'] = {
['Title'] = 'New Employee',
['Desc'] = 'Employee: #%s | Name: %s | %s'
},
['employee_fire'] = {
['Title'] = 'Fire Employee',
['Desc'] = 'Employee: #%s | Name: %s | %s'
},
},
['Metadata'] = {
['VehicleId'] = 'π Vehicle ID',
['Mileage'] = 'π Mileage',
['NewPrice'] = 'π΅ New-Price',
['OldPrice'] = 'π΅ Old-Price',
['Price'] = 'π΅ Price',
['BuyerName'] = 'π€ Buyer Name',
['EmployeeId'] = 'π Employee ID',
['EmployeeName'] = 'π€ Employee Name',
['Timestamp'] = 'β³ Timestamp',
}
},
['AdministrationTransfer'] = {
['Title'] = 'π Administration > Transfer',
['Input'] = {
['PlayerLabel'] = 'PlayerId',
['PlayerDescription'] = 'Who do you want to transfer?',
['Error'] = {
['OwnTarget'] = 'You cannot transfer to yourself!',
['UnknownShop'] = 'Unknown Shop',
['UnknownPlayer'] = 'The player is not online!'
},
['Success'] = 'You have successfully transfered the trade shop',
},
},
['AdministrationSell'] = {
['DialogText'] = 'Do you want to sell %s (#%s) for %s$ (incl. %s$ outstanding wallet balance)?',
['DialogVehicleText'] = 'β οΈ Warning! You have %s vehicles in stock! You will lose all of these vehicles... are you sure that want to contine?',
['Success'] = 'You have successfully sold the trade shop',
['Error'] = {
['OwnTarget'] = 'You cannot transfer to yourself!',
['UnknownShop'] = 'Unknown Shop',
},
},
['EmployeeOptions'] = {
['Title'] = 'π Employees > Options',
['InfoTitle'] = 'Employee: %s (#%s)',
['InfoDesc'] = 'Working at %s',
['FireTitle'] = 'Fire Employee',
['FireDesc'] = 'Fire the employee',
},
['VehicleOptions'] = {
['Title'] = 'π Vehicles > Options',
['VehicleInStock'] = 'In Stock',
['InfoTitle'] = 'Vehicle: %s (#%s)',
['InfoDesc'] = 'Status: %s\nMileage: %s%s',
['PlaceForSellTitle'] = 'Place For Sell',
['PlaceForSellDesc'] = 'Place/Change Position the vehicle for sell',
['RemoveTitle'] = 'Remove for Sell',
['RemoveDesc'] = 'Remove the vehicle from the sell list',
['GoToTitle'] = 'Go to Vehicle',
['GoToDesc'] = 'Go to the vehicle',
['ChangePriceTitle'] = 'Change Price',
['ChangePriceDesc'] = 'Change the price of the vehicle',
},
['VehiclePlace'] = {
['PriceInput'] = {
['Title'] = 'π Trade Shop - %s',
['Label'] = 'Price',
['Description'] = 'Enter the price of the vehicle',
},
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['VehicleNotFound'] = 'Vehicle not found',
},
['Success'] = 'You have successfully placed the vehicle for sell',
},
['VehicleRemove'] = {
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['VehicleNotFound'] = 'Vehicle not found',
},
['Success'] = 'You have successfully removed the vehicle for sell',
},
['ChangePrice'] = {
['PriceInput'] = {
['Title'] = 'π Trade Shop - %s',
['Label'] = 'New Price',
['Description'] = 'Enter the new price of the vehicle',
},
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['VehicleNotFound'] = 'Vehicle not found',
},
['Success'] = 'You have successfully changed the price of the vehicle',
},
['FireEmployee'] = {
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['EmployeeNotFound'] = 'Employee not found',
},
['Success'] = 'You have successfully fired the employee',
}
}
},
['Deposit'] = {
['HelpNotify'] = 'Press ~g~[E]~s~ to deposit the vehicle',
['Error'] = {
['ShopNotFound'] = 'Shop not found',
['NotInVehicle'] = 'You need to be in a vehicle to deposit it',
['NotOwner'] = 'You are not the owner of this vehicle',
['VehicleNotAdded'] = 'Vehicle not added to the shop',
},
['Success'] = 'You have successfully deposited the vehicle',
}
},
['PropPlacer'] = {
['Rotate'] = 'Rotate +/-',
['Cancel'] = 'Cancel',
['Place'] = 'Place',
}
}
Last updated