-- All rank groups used by the script
-- The ranks for each group must be in a hierarchical order to work as expected
-- One of the defined groups must have 'default' set to true to safely migrate from old rank system
-- To create a new group, assign it a unique name, label and add ranks
-- Each rank has label and 'access' table of permissions (Config.RanksAccess), rank with 'leader' set to true has all permissions automatically and can only be set for the last rank
Config.RanksGroups = {}
Config.RanksGroups['MC'] = {
name = 'MC',
label = 'Motorcycle Club',
default = false,
ranks = {
{
label = 'Prospect',
access = {
['reserve.use'] = true,
},
},
{
label = 'Member',
access = {
['garage.use'] = true,
['storage.use'] = true,
},
},
{
label = 'Road Captain',
access = {
['actions.perform'] = true,
['protection.collect'] = true,
},
},
{
label = 'Sergeant at Arms',
access = {
['reserve.edit'] = true,
['members.invite'] = true,
['rivalry.begin'] = true,
},
},
{
label = 'Vice President',
access = {
['members.rank'] = true,
['members.kick'] = true,
['rivalry.claim'] = true,
},
},
{
label = 'President',
leader = true,
access = {},
},
},
}
Config.RanksGroups['GANG'] = {
name = 'GANG',
label = 'Gang',
default = true,
ranks = {
{
label = 'Street Rat',
access = {
['reserve.use'] = true,
},
},
{
label = 'Thug',
access = {
['garage.use'] = true,
['storage.use'] = true,
},
},
{
label = 'Soldier',
access = {
['actions.perform'] = true,
['protection.collect'] = true,
},
},
{
label = 'Made Man',
access = {
['reserve.edit'] = true,
['members.invite'] = true,
['rivalry.begin'] = true,
},
},
{
label = 'Lieutenant',
access = {
['members.rank'] = true,
['members.kick'] = true,
['rivalry.claim'] = true,
},
},
{
label = 'Boss',
leader = true,
access = {},
},
},
}
Config.RanksGroups['MAFIA'] = {
name = 'MAFIA',
label = 'Mafia',
default = false,
ranks = {
{
label = 'Associate',
access = {
['reserve.use'] = true,
},
},
{
label = 'Soldier',
access = {
['garage.use'] = true,
['storage.use'] = true,
},
},
{
label = 'Capo',
access = {
['actions.perform'] = true,
['protection.collect'] = true,
},
},
{
label = 'Consigliere',
access = {
['reserve.edit'] = true,
['members.invite'] = true,
['rivalry.begin'] = true,
},
},
{
label = 'Underboss',
access = {
['members.rank'] = true,
['members.kick'] = true,
['rivalry.claim'] = true,
},
},
{
label = 'Boss',
leader = true,
access = {},
},
},
}
-- Enable this option to create hierarchy of permissions for each rank in a group
-- In simple term this means that every 'access' of the lower rank will be automatically assigned to the higher rank too
Config.RanksInheritance = true
-- All commands used in this script
Config.Commands = {
MANAGEGANG = 'managegang',
CREATEGANG = 'creategang',
DELETEGANG = 'deletegang',
ACCEPTGANG = 'acceptgang',
GANGMENU = 'gangmenu',
SHOWZONES = 'showzones',
SELLDRUGS = 'selldrugs',
FREEPLAYER = 'freeplayer',
PLACEPOINT = 'placepoint',
REMOVEPOINT = 'removepoint',
ADDVEHICLE = 'addvehicle',
DELVEHICLE = 'delvehicle',
}
Config.CommandSuggestion = {}
-- Chat suggestions for all commands
Config.CommandSuggestion['MANAGEGANG'] = {
description = 'Use this to create/delete and manage gangs (Admin Only)',
parameters = {}
}
Config.CommandSuggestion['CREATEGANG'] = {
description = 'Use this to create a new gang (Admin Only)',
parameters = {
{
name = 'leader',
help = 'Id of the leader'
},
{
name = 'color',
help = 'Color of the gang'
},
{
name = 'group',
help = 'Group of the gang'
},
{
name = 'tag',
help = 'Tag, 10 characters maximum'
},
{
name = 'name',
help = 'Name, 32 characters maximum'
}
}
}
Config.CommandSuggestion['DELETEGANG'] = {
description = 'Use this to delete an existing gang (Admin Only)',
parameters = {
{
name = 'id/tag/name',
help = 'Id or Tag or Name of the gang'
}
}
}
Config.CommandSuggestion['ACCEPTGANG'] = {
description = 'Use this to accept a gang invite',
parameters = {}
}
Config.CommandSuggestion['GANGMENU'] = {
description = 'Use this to open the gang menu',
parameters = {}
}
Config.CommandSuggestion['SHOWZONES'] = {
description = 'Use this to show/hide gang zones on the map',
parameters = {}
}
Config.CommandSuggestion['SELLDRUGS'] = {
description = 'Use this to open the drug menu',
parameters = {}
}
Config.CommandSuggestion['FREEPLAYER'] = {
description = 'Use this to free the player from zip ties and head bags (Admin Only)',
parameters = {
{
name = 'player',
help = 'Id of the player.'
}
}
}
Config.CommandSuggestion['PLACEPOINT'] = {
description = 'Use this to place a gang checkpoint (Admin Only)',
parameters = {
{
name = 'id/tag/name',
help = 'Id or Tag or Name of the gang'
},
{
name = 'type',
help = 'Type of the checkpoint, garage/storage'
}
}
}
Config.CommandSuggestion['REMOVEPOINT'] = {
description = 'Use this to remove a gang checkpoint (Admin Only)',
parameters = {
{
name = 'id/tag/name',
help = 'Id or Tag or Name of the gang'
},
{
name = 'type',
help = 'Type of the checkpoint, garage/storage'
}
}
}
Config.CommandSuggestion['ADDVEHICLE'] = {
description = 'Use this to add a gang vehicle (Admin Only)',
parameters = {
{
name = 'id/tag/name',
help = 'Id or Tag or Name of the gang'
},
{
name = 'model',
help = 'Model of the vehicle'
},
{
name = 'color',
help = 'Color of the vehicle'
}
}
}
Config.CommandSuggestion['DELVEHICLE'] = {
description = 'Use this to remove a gang vehicle (Admin Only)',
parameters = {
{
name = 'id/tag/name',
help = 'Id or Tag or Name of the gang'
},
{
name = 'model',
help = 'Model of the vehicle'
},
{
name = 'color',
help = 'Color of the vehicle'
}
}
}
|