mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Added config_server.lua and config_client.lua
Separated config into server and client files and moved sensitive information to the server config. Removed shot spotter, it will be made into a separate resource.
This commit is contained in:
90
ND_Core/config_client.lua
Normal file
90
ND_Core/config_client.lua
Normal file
@@ -0,0 +1,90 @@
|
||||
------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------
|
||||
-- --
|
||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6 --
|
||||
-- --
|
||||
------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------
|
||||
|
||||
config = {
|
||||
-- Server name to display on the ui.
|
||||
serverName = "Andy's Development",
|
||||
characterLimit = 15,
|
||||
changeCharacterCommand = "changecharacter", -- this is the command to open the ui again and change your character.
|
||||
|
||||
-- set your backgrounds, if you have more than 1 then it will randomly change everytime you open the ui.
|
||||
backgrounds = {
|
||||
"https://i.imgur.com/E51ckFx.png", -- Credits: Fuzzman270#0270
|
||||
"https://i.imgur.com/SeZD7TP.png", -- Credits: Fuzzman270#0270
|
||||
"https://i.imgur.com/ZWKfYD9.png", -- Credits: 2XRondo#6374
|
||||
"https://i.imgur.com/7jM5nZT.png" -- Credits: 2XRondo#6374
|
||||
},
|
||||
|
||||
-- set up your departments here, then set up the permissions for them below.
|
||||
departments = {
|
||||
"CIV",
|
||||
"SAHP",
|
||||
"LSPD",
|
||||
"BCSO",
|
||||
"LSFD"
|
||||
},
|
||||
|
||||
-- set up the spawn buttons for each department.
|
||||
spawns = {
|
||||
["CIV"] = {
|
||||
{x = -102.78, y = 6336.28, z = 31.49, name = "Dream View Motel (Paleto Bay)"},
|
||||
{x = 343.53, y = 2636.94, z = 43.94, name = "Eastern Motel (Sandy Shores)"},
|
||||
{x = 196.96, y = -934.54, z = 29.69, name = "Legion Square"},
|
||||
{x = -1616.69, y = -1073.81, z = 12.15, name = "Del Perro Pier"},
|
||||
{x = -1039.65, y = -2741.02, z = 12.89, name = "LSIA"}
|
||||
},
|
||||
["SAHP"] = {
|
||||
{x = -447.2, y = 6009.4, z = 30.72, name = "Paleto Bay Sheriff"},
|
||||
{x = 1849.4, y = 3688.6, z = 33.27, name = "Sandy Shores Sheriff"},
|
||||
{x = 437.6, y = -986.6, z = 29.69, name = "Mission Row PD"}
|
||||
},
|
||||
["LSPD"] = {
|
||||
{x = -447.2, y = 6009.4, z = 30.72, name = "Paleto Bay Sheriff"},
|
||||
{x = 1849.4, y = 3688.6, z = 33.27, name = "Sandy Shores Sheriff"},
|
||||
{x = 437.6, y = -986.6, z = 29.69, name = "Mission Row PD"}
|
||||
},
|
||||
["BCSO"] = {
|
||||
{x = -447.2, y = 6009.4, z = 30.72, name = "Paleto Bay Sheriff"},
|
||||
{x = 1849.4, y = 3688.6, z = 33.27, name = "Sandy Shores Sheriff"},
|
||||
{x = 437.6, y = -986.6, z = 29.69, name = "Mission Row Police "}
|
||||
},
|
||||
["LSFD"] = {
|
||||
{x = -384.07, y = 6117.9, z = 30.48, name = "Fire Station No1 (Paleto Bay)"},
|
||||
{x = 1691.5, y = 3597.95, z = 34.56, name = "Fire Station No2 (Sandy Shores)"},
|
||||
{x = 1194.71, y = -1474.14, z = 33.86, name = "Fire Station No7 (Los Santos)"}
|
||||
},
|
||||
},
|
||||
|
||||
-- Money related
|
||||
payCommand = "pay", -- Command to transfer someone money from bank account.
|
||||
giveCommand = "give", -- Command to give someone close money from wallet.
|
||||
|
||||
salaryAmount = 300, -- the daily amount that players will receive.
|
||||
salaryInterval = 24, -- every x minutes the player will receive the salaryAmount.
|
||||
|
||||
enableAopCommand = true,
|
||||
aopCommand = "setaop",
|
||||
checkAopCommand = "aop",
|
||||
defaultAop = "Sandy Shores",
|
||||
|
||||
-- Hide reticle or default gta money and ammo dispaly. WARNING: turning both to true will add a 0.01 to the resmon.
|
||||
hideReticle = true, -- hide weapon reticle.
|
||||
hideAmmoAndMoney = true, -- hides the default gta ammo & money.
|
||||
customPauseMenu = true, -- this will create a custom pause menu. It will display your money, characters name. And server name in the pause menu.
|
||||
|
||||
-- Discord Rich precence
|
||||
enableRichPrecence = true,
|
||||
updateIntervall = 60, -- how many seconds delay until it updates status.
|
||||
appId = 912361433273102356,
|
||||
largeLogo = "anyydevlogo",
|
||||
smallLogo = "anyydevlogo",
|
||||
firstButtonName = "DISCORD",
|
||||
firstButtonLink = "https://discord.gg/Z9Mxu72zZ6",
|
||||
secondButtonName = "TEBEX",
|
||||
secondButtonLink = "https://andyyy.tebex.io/category/fivem-scripts",
|
||||
}
|
||||
35
ND_Core/config_server.lua
Normal file
35
ND_Core/config_server.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------
|
||||
-- --
|
||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6 --
|
||||
-- --
|
||||
------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------
|
||||
|
||||
config = {
|
||||
-- Server name to display on the ui.
|
||||
serverName = "Andy's Development",
|
||||
characterLimit = 100,
|
||||
changeCharacterCommand = "changecharacter", -- this is the command to open the ui again and change your character.
|
||||
|
||||
-- discord bot token for permissions
|
||||
DiscordToken = "OTAwODg1MDMxMDQ2Nzc0ODQ1.YXH0kQ.p5DRIbh5m9Ia5_tlMZdxkfgJjsI",
|
||||
GuildId = "872496972454592523", -- discord guild id
|
||||
|
||||
-- role id for each role of the department in your discord. 0 Gives the role to everyone.
|
||||
roles = {
|
||||
["ADMIN"] = "0", -- You can remove this if you don't want it but this should only be here for permisisons not as a department and it won't display as a department. This can be used for /setaop and other permissions.
|
||||
["CIV"] = "0",
|
||||
["SAHP"] = "0",
|
||||
["LSPD"] = "0",
|
||||
["BCSO"] = "0",
|
||||
["LSFD"] = "0"
|
||||
},
|
||||
|
||||
-- Money related
|
||||
payCommand = "pay", -- Command to transfer someone money from bank account.
|
||||
giveCommand = "give", -- Command to give someone close money from wallet.
|
||||
|
||||
salaryAmount = 300, -- the daily amount that players will receive.
|
||||
salaryInterval = 24, -- every x minutes the player will receive the salaryAmount.
|
||||
}
|
||||
Reference in New Issue
Block a user