Installations
server.cfg
Add the command to your server.cfg file and make sure that the script is started.
ensure mt_namechange
config.lua
You can configure everything in config.lua. Once you have made your desired changes, you'll need to restart your server to ensure that everything works smoothly.
Config = {}
-- Preis Abteilung --
Config.Money = 500
-- Cords Abteilung --
Config.X = -545.38
Config.Y = -203.75
Config.Z = 37.22
Config.Heading = 111.34
Config.Distancelol = 3
-- Blip Abteilung --
Config.BlipName = "mt_namechange"
Config.BlipSymbol = 498
Config.BlipFarbe = 4
function SendNotification(source, message)
TriggerClientEvent('notifications', source, "#673ab7", "MT NameChange", message)
end
Config.Messages = {
mtINPUT = "Press ~INPUT_PICKUP~ to open the menu",
mtmoney = "You don't have enough cash to change your first name.",
mterror = "You have canceled the operation.",
mtfirstName = "Your new first name is: %s",
mtlastname = "Your new last name is: %s",
}
Config.NotifyDiscord = {
discordWebhookUrl = "https://discord.com/api/webhooks/1202364456093634570/t_i8p0wHz1RumvAywTrUm0a7oMnv9-1gcNBwDCKol7liSQUsyZzNhfVIaRBK5TFtPWuz",
botname = "Name Change Bot",
color = 16711680,
}
Discord Webhooks
Getting started with Discord webhooks: To begin, you'll need to establish a connection with your Discord webhooks by configuring the config.lua
file.
Last updated
Was this helpful?