搜索
查看: 77|回复: 1
收起左侧

翻译成中文,保留源代码

[复制链接]

升级进度: 66%

Toyota 发表于 2024-9-7 14:39:15 | 显示全部楼层 |阅读模式

https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1 https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R


Config = {}
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv

https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
Config.UseOkokTextUI = false -- true = okokTextUI (I recommend you using this since it is way more optimized than the default ShowHelpNotification) | false = ShowHelpNotification
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij

https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv

https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst


Config.Key = 38 -- [E] Key to open the interaction, check here the keys ID: https://docs.fivem.net/docs/game-references/controls/#controls
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn

https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
Config.HideMinimap = true -- If true it'll hide the minimap when the Crafting menu is openedhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl

Config.ShowBlips = false -- If true it'll show the crafting blips on the maphttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
Config.ShowFloorBlips = true -- If true it'll show the crafting markers on the floorhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
Config.Crafting = {https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
    {https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
        coordinates = vector3(-809.4, 190.3, 72.5), -- coordinates of the tablehttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
        radius = 1, -- radius of the tablehttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
        maxCraftRadius = 5, -- if you are further it will stop the crafthttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
        showBlipRadius = 50,https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
        blip = {blipId = 89, blipColor = 3, blipScale = 0.9, blipText = "Crafting"}, -- to get blips and colors check this: https://wiki.gtanet.work/index.php?title=Blipshttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
        tableName = 'General', -- Titlehttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
        tableID = 'general1', -- make a different one for every table with NO spaceshttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
        crafts = { -- What items are available for crafting and the recipehttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
            {https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
                item = 'WEAPON_ASSAULTRIFLE', -- Item id and name of the imagehttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
                amount = 1,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
                successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%

https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q

  • https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9

  •                 isItem = false, -- if true = is item | if false = is weaponhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
                    time = 6, -- Time to craft (in seconds)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
                    recipe = { -- Recipe to craft it
    https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z

                        {'w2_WEAPON_ASSAULTRIFLE', 1, false}, -- item/amount/if the item should be removed when crafting这是干扰码
                        {'gunbarrel', 1, true},不要乱来哦
                        {'weaponstock', 1, true},https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
                        {'trigger', 1, true},https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
                        {'grip', 1, true},https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
                        {'gunframe', 1, true},https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
                        {'metalspring', 2, true},https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
                    },

    https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1 https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T


                    job = { -- What jobs can craft this item in this workbench
  • https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U

  •                     'police'https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
                    },https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
                },https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
                {https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
                    item = 'jewels', -- Item id and name of the image
  • https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N

  •                 amount = 3,
  • https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9

  •                 successCraftPercentage = 75, -- Percentage of successful craft 0 = 0% | 50 = 50% | 100 = 100%
    https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6

                    isItem = true, -- if true = is item | if false = is weaponhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
                    time = 5, -- Time to craft (in seconds)https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
                    recipe = { -- Recipe to craft it不要乱来哦
                        {'gold', 12, true}, -- item/amount/if the item should be removed when crafting
    https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T

                        {'diamond', 6, true},https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
                    },
  • https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2

  •                 job = { -- What jobs can craft this item in this workbench
    https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij

                        ''https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
                    },
    https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z

                },
    https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv

            },
  • https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr

  •     },
    https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3

    }
  • https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1

  • https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
    -------------------------- DISCORD LOGS

    https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K


    https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
    -- To set your Discord Webhook URL go to server.lua, line 3https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
    https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl

    Config.BotName = 'ServerName' -- Write the desired bot namehttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
    https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
    Config.ServerName = 'ServerName' -- Write your server's name

    https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn

  • https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W

  • https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H

    Config.IconURL = '' -- Insert your desired image linkhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
    https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
    Config.DateFormat = '%d/%m/%Y [%X]' -- To change the date format check this website - https://www.lua.org/pil/22.1.htmlhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
    https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
    -- 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
    https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8

    https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J

    https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S


    Config.StartCraftWebhookColor = '16127'https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
    https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
    Config.ConcludeCraftWebhookColor = '65352'https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
    https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4

    Config.AnticheatProtectionWebhookColor = '16776960'https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
    https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
    Config.FailWebhookColor = '16711680'https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
    https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
    https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
    https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
    https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
    https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J

    https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
    回复 论坛版权

    使用道具 举报

    ChatGPT 发表于 2024-9-7 14:39:26 | 显示全部楼层
    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'
    回复

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|Archiver|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

    GMT+8, 2024-11-25 02:25 , Processed in 0.073317 second(s), 9 queries , Gzip On, Redis On.

    Powered by Discuz! X3.4

    © 2001-2013 ELITE论坛【技术无价-分享快乐】

    快速回复 返回顶部 返回列表