Config

Here you can find all the configurations that you can set with our lottery script

Mio.Locals

Configure the different texts that should be output when notifying

-- LANGUAGE SETTINGS --
-- CHANGE LANGUAGE PARTS OF SCRIPT
Mio.Locals = {
    noticket = 'You don’t have any lottery tickets left in your inventory!',
    ticketsubmitted = 'Lottery ticket submitted successfully!',
    notenough = 'Not enough participants for the draw.',
    drawstarted = 'The lottery draw has started!',
    drawwin = 'You have won the lottery draw!',
    numbersbtw = 'All numbers must be between 1 and 49.',
    manuell = 'The lottery draw has been manually started!',
    noaccess = 'You do not have permission to use this command.',
    selectsix = "Please select exactly 6 numbers!",
    errorsending = "Error sending the numbers - please try again!",
}
-- LANGUAGE SETTINGS END --

Mio.Base

Base settings like Drawtime, min Participants, Lotteryitem and more

Mio.Debug = false -- Dev Mode (prints)

-- BASIC SETTINGS FOR LOTTERY -- 
-- SETUP DRAWTIME | MINIMUM PLAYERS | LOTTOITEM
Mio.DrawTime = "21:00" -- time for automatic lobbery draw
Mio.MinParticipants = 1 -- minimum players to start lottery draw
Mio.LottoItem = 'lottoschein'
Mio.AdminCommand = 'startlottery'

-- INVENTORY
Mio.UseOxInventory = false -- true = ox_inventory | false = ESX Inventory
-- BASIC SETTINGS END --

Mio.Prices

Configure your price options for jackpot

-- JACKPOT & TICKET SETTINGS --
-- SETUP YOUR PRICES HERE --
Mio.TicketPrice = 15000 -- price for lottery ticket (will be added to jackpot)
Mio.JackpotBase = 100000 -- basic jackpot
-- JACKPOT & TICKET SETTINGS END --

Mio.Notify

Setup own notify script

-- NOTIFY SETTINGS -- 
-- SETUP HERE YOUR OWN NOTIFY SCRIPT
Mio.CustomNotify = false

Mio.Notification = function(message)
    if Mio.CustomNotify then
        exports['mio_notify']:Notify("Lottery", message, 4000, 'info')
    else
        -- Standard ESX-Notification
        ESX.ShowNotification(message)
    end
end
-- NOTIFY SETTINGS END --

Mio.Webhook

configure your webhook notifys for discord server

-- WEBHOOK SETTINGS --
-- SETUP WEBHOOK FOR DISCORD
Mio.Webhook = false -- true = active | false = deactivated
Mio.WebhookURL = "YOUR URL"
Mio.WebhookColor = {
    info = 3447003, -- blue
    success = 3066993, -- green
    warning = 15105570, -- orange
    error = 15158332, -- red
}
-- WEBHOOK SETTINGS END --

Last updated