This resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5)/ Extendedmode.
You need a cool Lottery like real life LOTTO for your server? Here you go!
Features
- Fully configurable lottery
- Configurable rewards, draw times/days
- Fancy Lotto ticket UI, Lottery Shop and Draw UI
- Fully customizable blips, markers & peds
- Configurable ticket limit
- Database stored lottery tickets
- Configurable webhook logs (winnings)
- Adjustable notification event
- ESX events and prefix customizable
- Low performance consumption (0.00ms - 0.03ms)
Showcase: Click me
Buy: Click me (Secured by FiveM Escrow System)
Config Snippets:
MK = MK or {}
-- By default 'en' and 'de' are supported.
-- You can modify or add new translations in the translations.lua file
MK.Language = 'en'
MK.ESXSharedObject = 'esx:getSharedObject'
MK.Notify = function(type, message)
if type == 'success' then
TriggerEvent('esx:showNotification', message)
elseif type == 'warning' then
TriggerEvent('esx:showNotification', message)
elseif type == 'error' then
TriggerEvent('esx:showNotification', message)
elseif type == 'info' then
TriggerEvent('esx:showNotification', message)
end
end
-- Days for Lottery Drawals
-- Example for all 7 Weekdays
-- MK.DrawDays = {"Monday","Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}
MK.DrawDays = {"Thursday","Friday"}
-- Time for Lottery Drawals
MK.DrawTime = {"10:14"}
-- Price for a single ticket
MK.Ticketprice = 400
-- Location for Lotterywoman
MK.LotteryLocation = { x = -599.1505, y = -926.681, z = 23.863538, h = 109.91512 }
-- max. amount of lottery tickets a person can buy
MK.MaxTickets = 3
-- Rewards for amount of correct numbers
MK.Rewards = {
[0] = 0,
[1] = 20,
[2] = 150,
[3] = 3000, -- Example 3 correct numbers -> 3000$ reward
[4] = 23000,
[5] = 90000,
[6] = 17000000,
}
-- Config/Location for Lottery Shop
MK.LotteryLoc = {
{
Position = { x = -598.7199, y = -929.621, z = 23.863447, h = 88.600372 },
Blip = {
Enabled = true,
Sprite = 490,
Color = 5,
Size = 0.8
},
Marker = {
Enabled = false,
Type = 1,
Size = { x = 2.0, y = 2.0, z = 0.5 },
Color = { r = 255, g = 255, b = 255 }
},
Ped = {
Enabled = true,
Ped = 'g_m_m_armboss_01'
}
}
}
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | LUA: ~1500 UI: ~600 |
Support | Yes |