翻译
Config = {}
--------------------------------
--
Config.DateFormat = '%H:%M' -- To change the date format check this website - https://www.lua.org/pil/22.1.html
--
Config.StaffGroups = {
'superadmin',
'admin',
'mod'
}
--------------------------------
--
Config.AllowPlayersToClearTheirChat = true
Config.ClearChatCommand = 'clear'
--------------------------------
--
Config.EnableStaffCommand = true
Config.StaffCommand = 'staff'
Config.AllowStaffsToClearEveryonesChat = true
Config.ClearEveryonesChatCommand = 'clearall'
--
Config.EnableStaffOnlyCommand = true
Config.StaffOnlyCommand = 'staffo'
--------------------------------
--
Config.EnableAdvertisementCommand = true
Config.AdvertisementCommand = 'ad'
Config.AdvertisementPrice = 1000
Config.AdvertisementCooldown = 5 -- in minutes
--------------------------------
--
Config.EnableTwitchCommand = true
Config.TwitchCommand = 'twitch'
-- Types of identifiers: steam: | license: | xbl: | live: | discord: | fivem: | ip:
Config.TwitchList = {
'steam:110000118a12j8a' -- Example, change this
}
--------------------------------
--
Config.EnableYoutubeCommand = true
Config.YoutubeCommand = 'youtube'
-- Types of identifiers: steam: | license: | xbl: | live: | discord: | fivem: | ip:
Config.YoutubeList = {
'steam:110000118a12j8a' -- Example, change this
}
--------------------------------
--
Config.EnableTwitterCommand = true
Config.TwitterCommand = 'twitter'
--------------------------------
--
Config.EnablePoliceCommand = true
Config.PoliceCommand = 'police'
Config.PoliceJobName = 'police'
--------------------------------
--
Config.EnableAmbulanceCommand = true
Config.AmbulanceCommand = 'ambulance'
Config.AmbulanceJobName = 'ambulance'
--------------------------------
--
Config.EnableOOCCommand = true
Config.OOCCommand = 'ooc'
Config.OOCDistance = 20.0
--------------------------------
-- 配置文件
Config = {}
--------------------------------
-- 日期格式设置
Config.DateFormat = '%H:%M' -- 若要更改日期格式,请查看此网站 - https://www.lua.org/pil/22.1.html
--
Config.StaffGroups = {
'superadmin',
'admin',
'mod'
}
--------------------------------
-- 允许玩家清空聊天记录
Config.AllowPlayersToClearTheirChat = true
Config.ClearChatCommand = 'clear'
--------------------------------
-- 启用员工指令
Config.EnableStaffCommand = true
Config.StaffCommand = 'staff'
Config.AllowStaffsToClearEveryonesChat = true
Config.ClearEveryonesChatCommand = 'clearall'
--
Config.EnableStaffOnlyCommand = true
Config.StaffOnlyCommand = 'staffo'
--------------------------------
-- 启用广告指令
Config.EnableAdvertisementCommand = true
Config.AdvertisementCommand = 'ad'
Config.AdvertisementPrice = 1000
Config.AdvertisementCooldown = 5 -- 单位为分钟
--------------------------------
-- 启用Twitch指令
Config.EnableTwitchCommand = true
Config.TwitchCommand = 'twitch'
-- 标识符类型:steam: | license: | xbl: | live: | discord: | fivem: | ip:
Config.TwitchList = {
'steam:110000118a12j8a' -- 示例,更改此处
}
--------------------------------
-- 启用Youtube指令
Config.EnableYoutubeCommand = true
Config.YoutubeCommand = 'youtube'
-- 标识符类型:steam: | license: | xbl: | live: | discord: | fivem: | ip:
Config.YoutubeList = {
'steam:110000118a12j8a' -- 示例,更改此处
}
--------------------------------
-- 启用Twitter指令
Config.EnableTwitterCommand = true
Config.TwitterCommand = 'twitter'
--------------------------------
-- 启用警察指令
Config.EnablePoliceCommand = true
Config.PoliceCommand = 'police'
Config.PoliceJobName = 'police'
--------------------------------
-- 启用救护车指令
Config.EnableAmbulanceCommand = true
Config.AmbulanceCommand = 'ambulance'
Config.AmbulanceJobName = 'ambulance'
--------------------------------
-- 启用OOC指令
Config.EnableOOCCommand = true
Config.OOCCommand = 'ooc'
Config.OOCDistance = 20.0
--------------------------------
这段代码是放在服务器的脚本文件server.lua中的。
页:
[1]