MT SERVICE DOCUMENTATION
WebshopYoutubeDiscord
  • 👨‍✈️WELCOME
  • 📕READ ME
  • MT SCRIPTS V1
    • 📦│MT-FFA
      • Installations
      • Erorrs
    • 📦│MT-HUD
      • Installations
      • Erorrs
    • 📦│MT-SHOP
      • Installations
      • Erorrs
    • 📦│MT-NOTIFY
      • Installations
      • Erorrs
    • 📦│MT-GANGWAR
      • Installations
      • Erorrs
    • 📦│MT-KO-SYSTEM
      • Installations
      • Erorrs
    • 📦│MT-WEAPONSHOP
      • Installations
      • Erorrs
    • 📦│MT-DEATHSCREEN
      • Installations
      • Erorrs
    • 📦│MT-HEADSCHOT-SYSTEM
      • Installations
      • Erorrs
    • 📦│MT-INGAME-TICKETYSTEM
      • Installations
      • Erorrs
    • 📦│MT_PROGRESSBARS
      • Installations
      • Erorrs
    • 📦│MT_INJURIES
      • Installations
      • Erorrs
    • 📦│MT_SAFEZONE
      • Installations
      • Erorrs
    • 📦│MT_NAMECHANGE
      • Installations
      • Erorrs
    • 📦│MT_PARKING
      • Installations
      • Erorrs
    • 📦│MT_SAND_THROWING
      • ESX Installations
      • QB Installations
      • Erorrs
Powered by GitBook
On this page
  • server.cfg
  • config.lua
  • Discord Webhooks

Was this helpful?

  1. MT SCRIPTS V1
  2. 📦│MT_NAMECHANGE

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.

Do you have questions

You can customize everything else in your config.lua. If you have any questions or encounter difficulties, feel free to contact us on Discord.

Previous📦│MT_NAMECHANGENextErorrs

Last updated 1 year ago

Was this helpful?

How to Get Started with Discord Webhooks - Hookdeck
Logo