翻译成中文,保留源代码
Config = {}
Config.UseOkokTextUI = false -- true = okokTextUI (I recommend you using this since it is way more optimized than the default ShowHelpNotification) | false = ShowHelpNotification
Config.Key = 38 -- Key to open the interaction, check here the keys ID: https://docs.fivem.net/docs/game-references/controls/#controls
Config.HideMinimap = true -- If true it'll hide the minimap when the Crafting menu is opened
Config.ShowBlips = false -- If true it'll show the crafting blips on the map
Config.ShowFloorBlips = true -- If true it'll show the crafting markers on the floor
Config.Crafting = {
{
coordinates = vector3(-809.4, 190.3, 72.5), -- coordinates of the table
radius = 1, -- radius of the table
maxCraftRadius = 5, -- if you are further it will stop the craft
showBlipRadius = 50,
blip = {blipId = 89, blipColor = 3, blipScale = 0.9, blipText = "Crafting"}, -- to get blips and colors check this: https://wiki.gtanet.work/index.php?title=Blips
tableName = 'General', -- Title
tableID = 'general1', -- make a different one for every table with NO spaces
crafts = { -- What items are available for crafting and the recipe
{
item = 'WEAPON_ASSAULTRIFLE', -- Item id and name of the image
amount = 1,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = false, -- if true = is item | if false = is weapon
time = 6, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'w2_WEAPON_ASSAULTRIFLE', 1, false}, -- item/amount/if the item should be removed when crafting
{'gunbarrel', 1, true},
{'weaponstock', 1, true},
{'trigger', 1, true},
{'grip', 1, true},
{'gunframe', 1, true},
{'metalspring', 2, true},
},
job = { -- What jobs can craft this item in this workbench
'police'
},
},
{
item = 'jewels', -- Item id and name of the image
amount = 3,
successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- if true = is item | if false = is weapon
time = 5, -- Time to craft (in seconds)
recipe = { -- Recipe to craft it
{'gold', 12, true}, -- item/amount/if the item should be removed when crafting
{'diamond', 6, true},
},
job = { -- What jobs can craft this item in this workbench
''
},
},
},
},
}
-------------------------- DISCORD LOGS
-- To set your Discord Webhook URL go to server.lua, line 3
Config.BotName = 'ServerName' -- Write the desired bot name
Config.ServerName = 'ServerName' -- Write your server's name
Config.IconURL = '' -- Insert your desired image link
Config.DateFormat = '%d/%m/%Y [%X]' -- To change the date format check this website - https://www.lua.org/pil/22.1.html
-- To change a webhook color you need to set the decimal value of a color, you can use this website to do that - https://www.mathsisfun.com/hexadecimal-decimal-colors.html
Config.StartCraftWebhookColor = '16127'
Config.ConcludeCraftWebhookColor = '65352'
Config.AnticheatProtectionWebhookColor = '16776960'
Config.FailWebhookColor = '16711680'
Config = {}
Config.UseOkokTextUI = false -- true = okokTextUI(我建议使用这个,因为它比默认的ShowHelpNotification更优化) | false = ShowHelpNotification
Config.Key = 38 -- 打开交互的按键,查看按键ID请访问:https://docs.fivem.net/docs/game-references/controls/#controls
Config.HideMinimap = true -- 如果为true,当打开制作菜单时将隐藏小地图
Config.ShowBlips = false -- 如果为true,将在地图上显示制作标记
Config.ShowFloorBlips = true -- 如果为true,将在地面上显示制作标记
Config.Crafting = {
{
coordinates = vector3(-809.4, 190.3, 72.5), -- 桌子的坐标
radius = 1, -- 桌子的半径
maxCraftRadius = 5, -- 如果你距离太远,将停止制作
showBlipRadius = 50,
blip = {blipId = 89, blipColor = 3, blipScale = 0.9, blipText = "制作"}, -- 获取标记和颜色请查看:https://wiki.gtanet.work/index.php?title=Blips
tableName = '一般', -- 标题
tableID = 'general1', -- 每个桌子都要不同,且不能有空格
crafts = { -- 可制作的物品及其配方
{
item = 'WEAPON_ASSAULTRIFLE', -- 物品ID和图片名称
amount = 1,
successCraftPercentage = 75, -- 成功制作的百分比 0 = 0% | 50 = 50% | 100 = 100%
isItem = false, -- 如果为true = 是物品 | 如果为false = 是武器
time = 6, -- 制作时间(秒)
recipe = { -- 制作配方
{'w2_WEAPON_ASSAULTRIFLE', 1, false}, -- 物品/数量/制作时是否移除物品
{'gunbarrel', 1, true},
{'weaponstock', 1, true},
{'trigger', 1, true},
{'grip', 1, true},
{'gunframe', 1, true},
{'metalspring', 2, true},
},
job = { -- 哪些职业可以在这个工作台制作此物品
'警察'
},
},
{
item = 'jewels', -- 物品ID和图片名称
amount = 3,
successCraftPercentage = 75, -- 成功制作的百分比 0 = 0% | 50 = 50% | 100 = 100%
isItem = true, -- 如果为true = 是物品 | 如果为false = 是武器
time = 5, -- 制作时间(秒)
recipe = { -- 制作配方
{'gold', 12, true}, -- 物品/数量/制作时是否移除物品
{'diamond', 6, true},
},
job = { -- 哪些职业可以在这个工作台制作此物品
''
},
},
},
},
}
-------------------------- DISCORD 日志
-- 要设置你的 Discord Webhook URL,请去 server.lua 的第3行
Config.BotName = '服务器名称' -- 写下你想要的机器人名称
Config.ServerName = '服务器名称' -- 写下你的服务器名称
Config.IconURL = '' -- 插入你想要的图片链接
Config.DateFormat = '%d/%m/%Y ' -- 要更改日期格式,请查看这个网站 - https://www.lua.org/pil/22.1.html
-- 要更改 webhook 颜色,你需要设置颜色的十进制值,可以使用这个网站来做到这一点 - https://www.mathsisfun.com/hexadecimal-decimal-colors.html
Config.StartCraftWebhookColor = '16127'
Config.ConcludeCraftWebhookColor = '65352'
Config.AnticheatProtectionWebhookColor = '16776960'
Config.FailWebhookColor = '16711680'
页:
[1]