# Config

### Mio.Locals

Configure the different texts that should be output when notifying

```lua
-- 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

```lua
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

```lua
-- 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

```lua
-- 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

```lua
-- 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 --
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mio-scripts.gitbook.io/mio-scripts/scripts/mio-lottery/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
