fixing script

This commit is contained in:
KingMcDonalds
2025-07-17 08:20:15 -07:00
parent 2a929c89ce
commit 8b93550575
3 changed files with 27 additions and 8 deletions
+25 -7
View File
@@ -11,18 +11,36 @@
Config = {
-- No own bot? Leave it as default and invite ours » https://discord.com/oauth2/authorize?client_id=956690799385522237&permissions=1024&scope=bot
-- If you do have a bot: define your BOT token below, inbetween the quotation marks: "bot_token",
Discord_Bot_Token = "",
Discord_Bot_Token = "NzUxOTY4NTY3MzA5NzYyNjgw.GzVJ9D.kAxZs0UBN-XxcSJPBRqo6zrp1L_KsjoBHibYYE",
Discord_Guild_Names = { -- Add your Discord Servers/Guilds by their ID here, when fetching something with this resource, we try and get as much information as possible from all your guilds
["989438923925229598"] = "Nights Software", -- Your primary server/guild ID (legacy scripts will get information regarding this guild)
["361895986198609920"] = "Nights Software", -- Your primary server/guild ID (legacy scripts will get information regarding this guild)
-- ["1001055923912653544"] = "My Community Discord", -- Add another (secondary) guild ID and Name to your liking. Make sure to invite the bot into this guild.
},
Discord_Role_Names = { -- Add Discord roles by their role ID here, name them how you want but make sure to use the same name in other configs of our resources.
-- Example:
["989863231482916874"] = "Administrator",
["963138401656242206"] = "Your_Police_Role",
["744819251814334485"] = "Your_Ambulance_Role",
["744819251788906505"] = "Your_Fire_Role",
["1002578457823297536"] = "Allowlisted",
["Silver Supporter 🥈"] = "596414797977878530",
["Gold Supporter 🥇"] = "742482159851536455",
["Platinum Supporter 💠"] = "742482158945566771",
["Diamond Supporter 💎"] = "742482161680122047",
["LSPD"] = "807381507622305852",
["BCSO"] = "807381508167565352",
["SASP"] = "807381508859887667",
["SAFD"] = "807381509195300905",
["Civilian I"] = "813907383892967424",
["Civilian II"] = "876585455615889450",
["Civilian III"] = "876585456387629066",
["Civilian IV"] = "876585900946128936",
["Civilian V"] = "876585431901294663",
["EG | Helper"] = "538822780662054963",
["EG | Staff"] = "608583076037001225",
["EG | Sr. Staff"] = "789551229549281331",
["EG | Moderator"] = "517060882686279701",
["EG | Sr. Moderator"] = "789538166536798248",
["EG | Admin"] = "635155687688634399",
["EG | Sr. Admin"] = "556158473981788176",
["EG | Head of Staff"] = "650653280275267591",
["EG | Server Developer"] = "671141073728307228",
["EG | Owner"] = "361899298209923075",
["468677647228363421"] = "Banned",
},
Discord_API_Cooldown = 2, -- Number of seconds between each API request. At least 2 is recommended.
+1 -1
View File
@@ -29,7 +29,7 @@ Config = {
TimeFormat = "en-GB", -- en-US, fr-FR, de-DE etc.
KMHorMPH = "MPH", -- "KMH" or "MPH"
Enable_Discord_API = false, -- You need the discord API for this script, otherwise it will not work https://store.nights-software.com/package/5035729 [FREE] Included in the Tebex package.
Enable_Discord_API = true, -- You need the discord API for this script, otherwise it will not work https://store.nights-software.com/package/5035729 [FREE] Included in the Tebex package.
Enable_Nearest_Postal = false, -- Nearest-postal integration, if false it will always return "Unknown" on postals. (CFX Post: https://forum.cfx.re/t/release-nearest-postal-script/293511) Edit getPostal(x,y) in c_functions.lua if you desire to integrate your own postal system.
Enable_MDT_Battery_System = true, -- Set to false to disable the battery system, if disabled it'll always stay 100%. Charging can be done in vehicles and interiors
DefaultSoundVolume = 0.15, -- Used for notifications. Higher than 0.5 will set it to 0.25, limited to protect ears
+1
View File
@@ -67,6 +67,7 @@ ensure npwd
#[-----Server Scripts-----]
ensure vMenu
ensure Delete-Vehicle
ensure night_discordapi
ensure night_subtitles
ensure night_ers
ensure night_shifts