# Config

### Mio.Translation

Configure the different texts that should be output when notifying

```lua
Mio.Translation = {
    NameChanged = "You have successfully changed your name",
    NameCooldown = 'You can change your name in %d days and %d hours.',
    NameToLong = "Your first or last name is too long.",
    NameBlacklist = "Your first or last name contains a prohibited word.",
    NotenoughMoney = "You don't have enough cash..",
    NotenoughBank = "You don't have enough money in your bank account..",
    Error = "There was an error changing your name!",
    textui = "Press ~INPUT_CONTEXT~ to change your name",
}
```

### Mio.Base

Base Settings like Price, cooldown, npc, blacklist and blip settings

```lua
Mio.Price = 1000 -- Price for name change
Mio.Days = 2 -- How many days until the player can change their name again?

Mio.NPC = {
    model = 'a_m_y_business_03', -- Which NPC model?
    coords = vector3(-547.3921, -209.4884, 36.6498), -- Coordinates of the NPC or name change location
    heading = 180.0 -- NPC heading direction
}

Mio.Blip = {
    Sprite = 475, -- Blip icon
    Color = 3, -- Blip color
    Scale = 0.6, -- Blip size
    Display = 4,
    Name = 'Mio Namechange' -- Blip name
}

Mio.MaxFirstnameLength = 15 -- Maximum length of the first name
Mio.MaxLastnameLength = 15 -- Maximum length of the last name
Mio.Blacklist = {"Discord", "Moderator", "Test"} -- Add prohibited words here
```

### Mio.Notify

set your own notify export or use our MIO NOTIFY

```lua
------------------------- NOTIFICATION SETTINGS ------------------------------------------------------
-- Here you can customize notifications for individual situations
-- Replace "ESX.ShowNotification" with your own notification export
-- Note that the reference (Mio.Translation.Example) must remain!

Mio.MioNotify = true -- Set this to true if you are using our Mio Notify (https://tebex.mioscripts/mionotify)

Mio.NameChanged = function(xPlayer)
    xPlayer.showNotification((Mio.Translation.NameChanged))
  end
  
  Mio.NameCooldown = function(days, hours)
    ESX.ShowNotification((Mio.Translation.NameCooldown):format(days, hours)) -- Insert client export for notification here
  end
  
  Mio.NameToLong = function(xPlayer)
    xPlayer.showNotification((Mio.Translation.NameToLong)) -- Insert server-side export for notification here
  end
  
  Mio.NameBlacklist = function(xPlayer)
    xPlayer.showNotification((Mio.Translation.NameBlacklist)) -- Insert server-side export for notification here
  end

  Mio.NotenoughMoney = function(xPlayer)
    xPlayer.showNotification((Mio.Translation.NotenoughMoney)) -- Insert server-side export for notification here
  end

  Mio.NotenoughBank = function(xPlayer)
    xPlayer.showNotification((Mio.Translation.NotenoughBank)) -- Insert server-side export for notification here
  end

  Mio.Error = function(xPlayer)
    xPlayer.showNotification((Mio.Translation.Error)) -- Insert server-side export for notification here
  end
------------------------- END OF NOTIFICATION SETTINGS --------------------------------------------------
```

### Mio.TextUI

set your own textui export

```lua
------------------------- TEXTUI SETTINGS --------------------------------------------------------
-- Here you can configure your own TextUI
-- Simply replace "ESX.ShowHelpNotification" with your own TextUI export

Mio.MioTextUI = false -- Set this to true if you are using our Mio TextUI (https://tebex.mioscripts/miotextui)

Mio.TextUI = function()
    ESX.ShowHelpNotification(Mio.Translation.textui)
  end
--------------------------- END OF TEXTUI SETTINGS----------------------------------------------------
```


---

# 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-namechange/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.
