Config

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

Mio.Translation

Configure the different texts that should be output when notifying

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

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

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

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

Last updated