Config FIles
Here you can view the configuration files
Config File
```lua
Config = {
DebugLevel = 2, -- This is the debug level that will be used, 1 = All General Info, 2 = Only Errors, 3 = Nothing (2 is recommended)
Framework = {
Type = "qb",
ResourceName = "qb-core"
},
Events = {
["Client:PlayerLoaded"] = "QBCore:Client:OnPlayerLoaded",
["Server:PlayerLoaded"] = "QBCore:Server:PlayerLoaded",
["Client:OnJobUpdate"] = "QBCore:Client:OnJobUpdate",
["Server:OnJobUpdate"] = "QBCore:Server:OnJobUpdate",
},
TextUI = "ox",
Progressbar = "ox",
Inventory = {
Type = "ox", -- This is the type of inventory that will be used, you can choose between "ox" and "qb". (ox is recommended)
ResourceName = "ox_inventory", -- This is the name of the inventory resource.
ImagePath = "ox_inventory/web/images", -- This is the path to the images that will be used in the inventory.
},
TabletItem = "gang_tablet", -- This is the item name that will be used to open the gang tablet.
DisableTabletAnim = false, -- Set this to true if you are using the "mr-gangs:client:OpenTablet" event to open the tablet from an external resource
Gangs = {
MaxMembers = 10, -- This is the maximum amount of members that a gang can have.
Grades = { -- Those grades are the same for all gangs (when assigning a boss to a gang, he will receive the highest rank)
-- Make Sure That The Index Of The First Rank Is 0
[0] = "Recruit",
[1] = "Member",
[2] = "OG",
[3] = "Co-Boss",
[4] = "Boss"
},
},
DisablePages = { -- This was added due to customers requests
Market = false, -- This is the option to disable the market page in the gang tablet.
},
Profile = {
DefaultProfileImage = "nui://mr-gangs/web/images/profile.png",
UpdateProfileCooldown = 30 -- This is the amount of times (in minutes) that a player will have to wait before updating their profile again.
},
Reputation = {
GraffitiSpray = 10, -- This is the amount of reputation that will be given to a player for each graffiti they spray.
RemoveGraffiti = 10, -- This is the amount of reputation that will be taken from a player for each graffiti they remove.
GraffitiRemoved = 5, -- This is the amount of reputation that will be taken away from the gangs reputation for each graffiti that is removed.
-- This is amount in percentages that will be taken from the player's reputation and added to the gang's reputation every time reputation is added / removed
ReputationContribution = 40 -- (example) 40% of the reputation will be added / removed to the gang's reputation
},
Graffities = {
GraffitiItem = "graffiti", -- This is the item name that will be used to spray and remove graffiti.
GraffitiRemover = "graffiti_remover", -- This is the item name that will be used to remove graffiti.
ApplyGraffitiTime = 10, -- This is the amount of time (in seconds) that a player will have to spray graffiti.
RemoveGraffitiTime = 5, -- This is the amount of time (in seconds) that a player will have to remove graffiti (recommended to set on high amount for because of the alert rival gang gets).
AlertWhenRemoving = true, -- This is the option to alert the gang that the graffiti is being removed.
Radius = 100.0, -- This is the radius (in meters) of the zone of the graffities, meaning you can't put graffities next to each other under that distance (this is also the render distance for the prop so make sure the value isn't so high but also so low).
Shop = {
RenderDistance = 20.0, -- This is a render distance for the shop npc
Coords = vector4(-159.3676, -1431.9686, 31.2707, 83.8155), -- This is the coords of the shop where players can buy the graffiti item.
PedModel = "csb_chef",
Remover = {
Currency = "cash", -- This is the currency that will be used to buy the remover.
CurrencyLabel = "$",
Amount = 100 -- This is the amount that the remover will be sold for.
},
Spray = {
Cooldown = 60, -- This is the amount of time (in minutes) that a gang will have to wait before purchasing another spray.
Type =
"dynamic", -- This is the type of price that will be set for the spray, you can choose between "static" and "dynamic". (Dynamic is recommended to challenge the players)
-- Static: The price will be static and won't change
Currency = "cash", -- This is the currency that will be used to buy the spray.
CurrencyLabel = "$",
Static = {
Amount = 100 -- This is the amount that the spray will be sold for.
},
-- Dynamic: The price will be dynamic and will change based on the amount of graffities that the gang has bought (stored in db).
Dynamic = { -- Formula: BasePrice + (Increase * GraffitiesBought)
BasePrice = 100, -- This is the base price that the spray will be sold for.
Increase = 10 -- This is the amount that the price will increase for each graffiti that the gang has bought (stored in db).
}
}
}
},
Market = {
Currency = "cash", -- This is the currency that will be used to buy and sell items.
TimerAmount = 10, -- This is the amount of time (in minutes) players will have during buy and sell missions.
WhiteListOrBlacklist = "blacklist", -- This option will give you the option to choose how the items will work, if you choose "whitelist", only the items in the "WhiteListItems" table will be available to sell, if you choose "blacklist", all items will be available to sell except the ones in the "BlackListItems" table.
WhiteListItems = {
["pdbadge"] = true
},
BlackListItems = {
["pdbadge"] = true
},
MissionBlip = {
sprite = 514,
color = 3,
scale = 0.8
},
ServerItems = {
{
item = "WEAPON_PISTOL", -- This is the item name that will be sold.
description =
"A 9mm pistol capable of handling most of your troubles in the street, it's a must-have for every gangster.",
price = 5000, -- This is the price per unit that the item will be sold for.
amount = 60, -- This is the amount of stock that will be available every script / server restart.
unlimited = false -- This is the option to make the item unlimited, if you set this to true, the amount will be ignored and the item will be unlimited.
},
{
item = "radio", -- This is the item name that will be sold.
description =
"A handheld radio that can be used to communicate with your fellow gangster while staying under the radar.",
price = 3500, -- This is the price per unit that the item will be sold for.
amount = 60, -- This is the amount of stock that will be available every script / server restart.
unlimited = true -- This is the option to make the item unlimited, if you set this to true, the amount will be ignored and the item will be unlimited.
}
},
Destinations = { -- This is the destinations that players will need to go to during buy and sell missions
{ coords = vector3(436.3492, 2996.1672, 41.2838), busy = false },
{ coords = vector3(2369.0520, 3155.5942, 49.0538), busy = false },
{ coords = vector3(2162.9204, 3375.1248, 46.4607), busy = false },
{ coords = vector3(1258.5557, 2739.8916, 38.8172), busy = false },
{ coords = vector3(474.0989, 2590.7673, 44.4382), busy = false }
},
PunishOnFailure = { -- This is the punishment that players will receive if they fail a buy or sell missions.
Enabled = true, -- You can fail by not getting via time, logging out of the game and getting to the mission area without a required items
Amount = 50 -- The amount of reputaiton that will be lost (player can't go into negatives)
}
},
Commands = {
GiveGang = { -- This is a command to give a player a gang
name = "givegang",
description = "Set Player's Gang (to assign a boss to a gang use the 'assignboss' command)",
args = { { name = "id", help = "The id of the player" }, { name = "gang", help = "Gang name" }, { name = "rank", help = "Rank in the gang (number)" } },
requiredPerm = "god",
},
AssignBoss = { -- This is a command assign a boss to a gang
name = "assignboss",
description = "Assign a boss to a gang",
args = { { name = "id", help = "The id of the player" }, { name = "gang", help = "Gang name" }, },
requiredPerm = "god",
},
MyGang = {
name = "mygang",
description = "Get information about your gang",
args = {},
}
},
}
```
Gangs List
```lua
Config.GangList = {
["vagos"] = {
Label = "Vagos",
BlipColor = 5,
SprayFile = "spray_vagos",
GangImage = "nui://mr-gangs/web/images/gangs/vagos.png", -- This is the image that will be displayed in the gang list, You can do it like this if you are saving it in the web folder, or you can do a link
},
["ballas"] = {
Label = "Ballas",
BlipColor = 2,
SprayFile = "spray_ballas",
GangImage = "nui://mr-gangs/web/images/gangs/ballas.png",
},
["gsf"] = {
Label = "Grove Street Families",
BlipColor = 3,
SprayFile = "spray_gsf",
GangImage = "nui://mr-gangs/web/images/gangs/gsf.png",
},
}
```
Last updated