翻译成中文,保留源代码
-- 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'
}
}
}
-- 脚本中使用的所有等级组
-- 每个组的等级必须按照层级顺序排列,以便正常工作
-- 定义的组中必须有一个设置为 'default' 为 true,以安全地迁移旧的等级系统
-- 要创建一个新组,请为其分配一个唯一的名称、标签并添加等级
-- 每个等级都有标签和权限访问表(Config.RanksAccess),设置为 'leader' 的等级会自动拥有所有权限,并且只能在最后一个等级设置
Config.RanksGroups = {}
Config.RanksGroups['MC'] = {
name = 'MC',
label = '摩托车俱乐部',
default = false,
ranks = {
{
label = '候补',
access = {
['reserve.use'] = true,
},
},
{
label = '成员',
access = {
['garage.use'] = true,
['storage.use'] = true,
},
},
{
label = '路队长',
access = {
['actions.perform'] = true,
['protection.collect'] = true,
},
},
{
label = '军械官',
access = {
['reserve.edit'] = true,
['members.invite'] = true,
['rivalry.begin'] = true,
},
},
{
label = '副会长',
access = {
['members.rank'] = true,
['members.kick'] = true,
['rivalry.claim'] = true,
},
},
{
label = '会长',
leader = true,
access = {},
},
},
}
Config.RanksGroups['GANG'] = {
name = 'GANG',
label = '帮派',
default = true,
ranks = {
{
label = '街头小子',
access = {
['reserve.use'] = true,
},
},
{
label = '恶棍',
access = {
['garage.use'] = true,
['storage.use'] = true,
},
},
{
label = '士兵',
access = {
['actions.perform'] = true,
['protection.collect'] = true,
},
},
{
label = '资深成员',
access = {
['reserve.edit'] = true,
['members.invite'] = true,
['rivalry.begin'] = true,
},
},
{
label = '中尉',
access = {
['members.rank'] = true,
['members.kick'] = true,
['rivalry.claim'] = true,
},
},
{
label = '老大',
leader = true,
access = {},
},
},
}
Config.RanksGroups['MAFIA'] = {
name = 'MAFIA',
label = '黑手党',
default = false,
ranks = {
{
label = '助手',
access = {
['reserve.use'] = true,
},
},
{
label = '士兵',
access = {
['garage.use'] = true,
['storage.use'] = true,
},
},
{
label = '下层干部',
access = {
['actions.perform'] = true,
['protection.collect'] = true,
},
},
{
label = '参谋',
access = {
['reserve.edit'] = true,
['members.invite'] = true,
['rivalry.begin'] = true,
},
},
{
label = '副头目',
access = {
['members.rank'] = true,
['members.kick'] = true,
['rivalry.claim'] = true,
},
},
{
label = '老大',
leader = true,
access = {},
},
},
}
-- 启用此选项以为每个组中的等级创建权限层次结构
-- 简而言之,这意味着每个低等级的 'access' 将自动被分配给高等级
Config.RanksInheritance = true
-- 脚本中使用的所有命令
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 = {}
-- 所有命令的聊天建议
Config.CommandSuggestion['MANAGEGANG'] = {
description = '用于创建/删除和管理帮派(仅限管理员)',
parameters = {}
}
Config.CommandSuggestion['CREATEGANG'] = {
description = '用于创建新的帮派(仅限管理员)',
parameters = {
{
name = 'leader',
help = '领导者的ID'
},
{
name = 'color',
help = '帮派颜色'
},
{
name = 'group',
help = '帮派组'
},
{
name = 'tag',
help = '标签,最多10个字符'
},
{
name = 'name',
help = '名称,最多32个字符'
}
}
}
Config.CommandSuggestion['DELETEGANG'] = {
description = '用于删除现有的帮派(仅限管理员)',
parameters = {
{
name = 'id/tag/name',
help = '帮派的ID或标签或名称'
}
}
}
Config.CommandSuggestion['ACCEPTGANG'] = {
description = '用于接受帮派邀请',
parameters = {}
}
Config.CommandSuggestion['GANGMENU'] = {
description = '用于打开帮派菜单',
parameters = {}
}
Config.CommandSuggestion['SHOWZONES'] = {
description = '用于在地图上显示/隐藏帮派区域',
parameters = {}
}
Config.CommandSuggestion['SELLDRUGS'] = {
description = '用于打开毒品菜单',
parameters = {}
}
Config.CommandSuggestion['FREEPLAYER'] = {
description = '用于让玩家从绑住的状态中解放出来(仅限管理员)',
parameters = {
{
name = 'player',
help = '玩家的ID。'
}
}
}
Config.CommandSuggestion['PLACEPOINT'] = {
description = '用于放置帮派检查点(仅限管理员)',
parameters = {
{
name = 'id/tag/name',
help = '帮派的ID或标签或名称'
},
{
name = 'type',
help = '检查点类型,车库/贮藏室'
}
}
}
Config.CommandSuggestion['REMOVEPOINT'] = {
description = '用于移除帮派检查点(仅限管理员)',
parameters = {
{
name = 'id/tag/name',
help = '帮派的ID或标签或名称'
},
{
name = 'type',
help = '检查点类型,车库/贮藏室'
}
}
}
Config.CommandSuggestion['ADDVEHICLE'] = {
description = '用于添加帮派车辆(仅限管理员)',
parameters = {
{
name = 'id/tag/name',
help = '帮派的ID或标签或名称'
},
{
name = 'model',
help = '车辆模型'
},
{
name = 'color',
help = '车辆颜色'
}
}
}
Config.CommandSuggestion['DELVEHICLE'] = {
description = '用于移除帮派车辆(仅限管理员)',
parameters = {
{
name = 'id/tag/name',
help = '帮派的ID或标签或名称'
},
{
name = 'model',
help = '车辆模型'
},
{
name = 'color',
help = '车辆颜色'
}
}
}
页:
[1]