搜索
开启左侧

[有效回答] 汉化 保留原代码

[复制链接]
CharlesCui 发表于 2024-12-16 22:32:13 | 显示全部楼层 |阅读模式

Config = {}
Config.Framework = "QBCore"                                     -- ESX // QBCore
Config.DefaultHud = true                                        -- true if you want to use the default hud
Config.Debug = false
Config.CommandHud = "hygiene_hud"                               -- show and hide the hud

Config.UseTarget = true                                         -- true // false
Config.Target = "qb-target"                                     -- qb-target // ox_target

Config.Shower = {                                               -- Shower Settings
    Enable = true,                                              -- enable shower hygiene
    EnablePropDetection = true,                                 -- Detect automatically shower props must be true if you use public shower
    Props = {
        ["ligoshower"] = {x=0.0, y=0.0, z=0.9},
        ["v_res_mbath"] = {x=0.0, y=0.7, z=0.8}
    },
    EnableShowerInWater = true,                                 -- The player can take a shower while swimming
    DefaultEffects = true,                                      -- true to enable effect if not take shower
    MinPercentEffect = 30,                                      -- the minimum percentage to start the effects
    ExistingShower = {
        [1] = {x = -803.62, y = 335.69, z = 221.73},            -- Position of default shower of GTA
    },
    PublicShower = {                                            -- Position of public shower
        [1] = {x = 182.15, y = -995.35, z = 29.29, h = 159.89, prop = "ligoshower"},
        [2] = {x = 184.45, y = -996.19, z = 29.29, h = 159.89, prop = "ligoshower"},
        [3] = {x = 186.75, y = -997.03, z = 29.29, h = 159.89, prop = "ligoshower"},
        [4] = {x = 189.05, y = -997.87, z = 29.29, h = 159.89, prop = "ligoshower"},
    },
    disable_movement = true,                                    -- disable movements while showering (recommended)
    increase_tick = 1,                                          -- tick to get more cleaner while taking shower (in seconds)
    increase = {inShower=3, inWatter=20},                       -- percent to add per tick
    decrease_tick = 5,                                          -- decrease time (in minutes)
    decrease = 9,                                               -- percent to remove per tick
}

Config.Toilet = {                                               -- Toilet settings
    Enable = true,                                              -- enable toilet hygiene
    EnablePropDetection = true,                                 -- Detect automatically prop 'ligoshower' must be true if you use public shower
    SkipSitAnim = false,                                        -- true if you wanna skip sit anim
    sit_time = 5,                                               -- sit time in seconds
    Props = {                                                   -- Props that will be detected automatically
        ["prop_toilet_01"] = {x=0.0, y=0.0, z=0.4},
        ["prop_portaloo_01a"] = {x=0.0, y=0.0, z=0.4}
    },
    Poo = {
        DefaultEffects = true,                                      -- Use default effect
        EffectRate = 50,                                            -- Effect rate in seconds
        MaxPercentEffect = 80,                                      -- the maximum percentage to start the effects
        increase_time = 10,                                          -- the time in minutes between each increase of the needs to go for toilets
        increase_percent = 13,                                      -- percent to add per each (increase_time)
    },
    Pee = {
        Command = "pee",                                            -- command to pee
        DefaultEffects = true,                                      -- Use default effect
        EffectRate = 40,                                            -- Effect rate in seconds
        MaxPercentEffect = 80,                                      -- the maximum percentage to start the effects
        EffectTime = 5,                                             -- how much of seconds the player will be affected
        increase_time = 5,                                          -- the time in minutes between each increase of the needs to go for toilets
        increase_percent = 15,                                      -- percent to add per each (increase_time)
        decrease = 5                                                -- percent to remove per each second while pissing
    },
    ExistingToilet = {                                          -- Position of default toilet of GTA
        [1] = {x = -807.27, y = 331.7, z = 220.0, h = 11.02, busy = false},
    },
    PublicToilet = {                                            -- Position of public toilet
        [1] = {x = 196.08, y = -1002.44, z = 29.29, h = 130.7, busy = false, prop = "prop_portaloo_01a"},
        [2] = {x = 166.87, y = -999.76, z = 29.34, h = 316.36, busy = false, prop = "prop_toilet_01"},
    },
}

Config.Sleep = {
    Enable = true,                                              -- enable sleep hygiene
    DefaultEffects = true,                                      -- Use default effect
    EffectRate = 60,                                            -- Effect rate in seconds
    MinPercentEffect = 30,                                      -- the minimum percentage to start the effects
    Beds = {-- bed props
        ["prop_bench_01a"] = {
            heading_offset = 90,
            ["person_1"] = {x=0.0, y=0.0, z=0.9},              -- position of the first person
            persons_limit = 1,                                   -- how much is limit of the persons who can sleep at the same time (max 2)
            inHouse = false
        },
        ["v_res_lestersbed"] = {                                -- bed name
            heading_offset = 180,
            ["person_1"] = {x=-0.5, y=0.0, z=0.9},              -- position of the first person
            ["person_2"] = {x=0.4, y=0.0, z=0.9},               -- position of the second person
            persons_limit = 2                                   -- how much is limit of the persons who can sleep at the same time (max 2)
        },
    },
    ExistingBeds = {                                                        -- Position of default beds of GTA
        [1] = {
            ["position"] = {x = -763.19, y = 322.32, z = 199.5, h = 1.41},
            ["person_1"] = {x=-0.5, y=0.0, z=0.0},                          -- position of the first person
            ["person_2"] = {x=0.5, y=0.0, z=0.0},                           -- position of the second person
            persons_limit = 2,                                               -- how much is limit of the persons who can sleep at the same time (max 2)
            inHouse = true
        }
    },
    Animation = {
        [1] = {dict = "anim@gangops@morgue@table@", anim="ko_front", OffSetHeading = 0},
        [2] = {dict = "timetable@tracy@sleep@", anim="base", OffSetHeading = 90}
    },
    increase = {tick = 2, percent_inHouse = 4, percent_outHouse = 2},                         -- tick in seconds, percent = how much percent is add at every tick
    decrease = {tick = 5, percent = 5},                         -- tick in minutes, percent = how much percent is removed at every tick
}

Config.Clothes = {
    ["shower"] = {                                              -- clothes while in shower
        ["animation"] = {dict = "clothingshirt", anim = "try_shirt_positive_d"},
        ["male"] = {
            [1] = {component = 4, item = 14, texture = 0},  -- pant
            [2] = {component = 6, item = 89, texture = 0},  -- shoes
            [3] = {component = 8, item = 15, texture = 0},  -- t-shirt
            [4] = {component = 11, item = 15, texture = 0}, -- Jacket
            [5] = {component = 3, item = 15, texture = 0},  -- arms
        },
        ["female"] = {
            [1] = {component = 4, item = 15, texture = 0},  -- pant
            [2] = {component = 6, item = 69, texture = 0},  -- shoes
            [3] = {component = 8, item = 14, texture = 0},  -- t-shirt
            [4] = {component = 11, item = 15, texture = 0}, -- Jacket
            [5] = {component = 3, item = 16, texture = 0},  -- arms
        },
    },
    ["toilet"] = {                                              -- clothes while in toilet
        ["animation"] = {dict = "re@construction", anim = "out_of_breath"},
        ["male"] = {
            [1] = {component = 4, item = 14, texture = 0},  -- pant
        },
        ["female"] = {
            [1] = {component = 4, item = 15, texture = 0},  -- pant
        },
    },
}

Config.TargetIcons = {
    ["shower"] = "fa-solid fa-shower",
    ["sleep"] = "fa-solid fa-bed",
    ["toilet"] = "fa-solid fa-toilet",
}

Config.TEXT = {
    ["PRESS"] = "Press [E]",
    ["OCCUPIED"] = "You are already doing something",
    ["START_SHOWER"] = "Take shower",
    ["STOP_SHOWER"] = " to stop",
    ["SHOWER_IN_VEHICLE"] = "You can't do in your vehicle !",
    ["IN_VEHICLE"] = "You can't do this in the vehicle",
    ["SIT_TOILET"] = "Sit",
    ["NEED_POOP"] = "You need to poop !",
    ["OCCUPIED_TOILET"] = "This toilet is occupied",
    ["NEED_PEE"] = "You need to pee !",
    ["SLEEP"] = "Sleep",
    ["STOP_SLEEP"] = "to wake up",
    ["NEED_SLEEP"] = "You need to sleep !",
    ["OCCUPIED_BED"] = "Someone is sleeping here !",
    ["ALREADY_PISSING"] = "You're already peeing !",
    ["FEEL_GOOD"] = "You feeling good",
}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-12-16 22:33:00 | 显示全部楼层
Config = {}
Config.Framework = "QBCore"                                     -- 框架选择:ESX 或 QBCore
Config.DefaultHud = true                                        -- 是否使用默认HUD,true为使用
Config.Debug = false                                            -- 调试模式
Config.CommandHud = "hygiene_hud"                               -- 显示和隐藏HUD的命令

Config.UseTarget = true                                         -- 是否启用目标系统,true为启用
Config.Target = "qb-target"                                     -- 目标系统可选:qb-target 或 ox_target

Config.Shower = {                                               -- 淋浴设置
    Enable = true,                                              -- 启用淋浴卫生
    EnablePropDetection = true,                                 -- 自动检测淋浴道具,如使用公共淋浴则必须为true
    Props = {
        ["ligoshower"] = {x=0.0, y=0.0, z=0.9}, 
        ["v_res_mbath"] = {x=0.0, y=0.7, z=0.8}
    },
    EnableShowerInWater = true,                                 -- 玩家在水中也可以淋浴
    DefaultEffects = true,                                      -- 如果不淋浴则启用效果
    MinPercentEffect = 30,                                      -- 开始生效的最小百分比
    ExistingShower = {
        [1] = {x = -803.62, y = 335.69, z = 221.73},            -- GTA默认淋浴位置
    },
    PublicShower = {                                            -- 公共淋浴位置
        [1] = {x = 182.15, y = -995.35, z = 29.29, h = 159.89, prop = "ligoshower"},
        [2] = {x = 184.45, y = -996.19, z = 29.29, h = 159.89, prop = "ligoshower"},
        [3] = {x = 186.75, y = -997.03, z = 29.29, h = 159.89, prop = "ligoshower"},
        [4] = {x = 189.05, y = -997.87, z = 29.29, h = 159.89, prop = "ligoshower"},
    },
    disable_movement = true,                                    -- 淋浴期间禁用移动(推荐)
    increase_tick = 1,                                          -- 每隔多少秒增加清洁度
    increase = {inShower=3, inWatter=20},                       -- 每个tick增加的百分比
    decrease_tick = 5,                                          -- 减少时间(分钟)
    decrease = 9,                                               -- 每个tick减少的百分比
}

Config.Toilet = {                                               -- 厕所设置
    Enable = true,                                              -- 启用厕所卫生
    EnablePropDetection = true,                                 -- 自动检测道具 'ligoshower',如果使用公共淋浴则必须为true
    SkipSitAnim = false,                                        -- 是否跳过坐下动画,true为跳过
    sit_time = 5,                                               -- 坐下时间(秒)
    Props = {                                                   -- 自动检测的道具
        ["prop_toilet_01"] = {x=0.0, y=0.0, z=0.4},
        ["prop_portaloo_01a"] = {x=0.0, y=0.0, z=0.4}
    },
    Poo = {
        DefaultEffects = true,                                      -- 使用默认效果
        EffectRate = 50,                                            -- 效果频率(秒)
        MaxPercentEffect = 80,                                      -- 开始生效的最大百分比
        increase_time = 10,                                          -- 增加厕所需求的时间(分钟)
        increase_percent = 13,                                      -- 每次增加的百分比
    },
    Pee = {
        Command = "pee",                                            -- 小便的命令
        DefaultEffects = true,                                      -- 使用默认效果
        EffectRate = 40,                                            -- 效果频率(秒)
        MaxPercentEffect = 80,                                      -- 开始生效的最大百分比
        EffectTime = 5,                                             -- 玩家受到影响的时间(秒)
        increase_time = 5,                                          -- 增加厕所需求的时间(分钟)
        increase_percent = 15,                                      -- 每次增加的百分比
        decrease = 5                                                -- 小便时每秒减少的百分比
    },
    ExistingToilet = {                                          -- GTA默认厕所位置
        [1] = {x = -807.27, y = 331.7, z = 220.0, h = 11.02, busy = false},
    },
    PublicToilet = {                                            -- 公共厕所位置
        [1] = {x = 196.08, y = -1002.44, z = 29.29, h = 130.7, busy = false, prop = "prop_portaloo_01a"},
        [2] = {x = 166.87, y = -999.76, z = 29.34, h = 316.36, busy = false, prop = "prop_toilet_01"},
    },
}

Config.Sleep = {
    Enable = true,                                              -- 启用睡眠卫生
    DefaultEffects = true,                                      -- 使用默认效果
    EffectRate = 60,                                            -- 效果频率(秒)
    MinPercentEffect = 30,                                      -- 开始生效的最小百分比
    Beds = {-- 床道具
        ["prop_bench_01a"] = {
            heading_offset = 90,
            ["person_1"] = {x=0.0, y=0.0, z=0.9},              -- 第一个人的位置
            persons_limit = 1,                                   -- 同时可以睡觉的人数限制(最大2)
            inHouse = false
        },
        ["v_res_lestersbed"] = {                                -- 床名称
            heading_offset = 180,
            ["person_1"] = {x=-0.5, y=0.0, z=0.9},              -- 第一个人的位置
            ["person_2"] = {x=0.4, y=0.0, z=0.9},               -- 第二个人的位置
            persons_limit = 2                                   -- 同时可以睡觉的人数限制(最大2)
        },
    },
    ExistingBeds = {                                                        -- GTA默认床的位置
        [1] = {
            ["position"] = {x = -763.19, y = 322.32, z = 199.5, h = 1.41},
            ["person_1"] = {x=-0.5, y=0.0, z=0.0},                          -- 第一个人的位置
            ["person_2"] = {x=0.5, y=0.0, z=0.0},                           -- 第二个人的位置
            persons_limit = 2,                                               -- 同时可以睡觉的人数限制(最大2)
            inHouse = true
        }
    },
    Animation = {
        [1] = {dict = "anim@gangops@morgue@table@", anim="ko_front", OffSetHeading = 0},
        [2] = {dict = "timetable@tracy@sleep@", anim="base", OffSetHeading = 90}
    },
    increase = {tick = 2, percent_inHouse = 4, percent_outHouse = 2},                         -- tick(秒),百分比 = 每个tick增加的百分比
    decrease = {tick = 5, percent = 5},                         -- tick(分钟),百分比 = 每个tick减少的百分比
}

Config.Clothes = {
    ["shower"] = {                                              -- 淋浴时的服装
        ["animation"] = {dict = "clothingshirt", anim = "try_shirt_positive_d"},
        ["male"] = {
            [1] = {component = 4, item = 14, texture = 0},  -- 裤子
            [2] = {component = 6, item = 89, texture = 0},  -- 鞋子
            [3] = {component = 8, item = 15, texture = 0},  -- T恤
            [4] = {component = 11, item = 15, texture = 0}, -- 外套
            [5] = {component = 3, item = 15, texture = 0},  -- 手臂
        },
        ["female"] = {
            [1] = {component = 4, item = 15, texture = 0},  -- 裤子
            [2] = {component = 6, item = 69, texture = 0},  -- 鞋子
            [3] = {component = 8, item = 14, texture = 0},  -- T恤
            [4] = {component = 11, item = 15, texture = 0}, -- 外套
            [5] = {component = 3, item = 16, texture = 0},  -- 手臂
        },
    },
    ["toilet"] = {                                              -- 厕所时的服装
        ["animation"] = {dict = "re@construction", anim = "out_of_breath"},
        ["male"] = {
            [1] = {component = 4, item = 14, texture = 0},  -- 裤子
        },
        ["female"] = {
            [1] = {component = 4, item = 15, texture = 0},  -- 裤子
        },
    },
}

Config.TargetIcons = {
    ["shower"] = "fa-solid fa-shower",                          -- 淋浴图标
    ["sleep"] = "fa-solid fa-bed",                              -- 睡觉图标
    ["toilet"] = "fa-solid fa-toilet",                          -- 厕所图标
}

Config.TEXT = {
    ["PRESS"] = "按下 ",
    ["OCCUPIED"] = "你正在做其他事情",
    ["START_SHOWER"] = "淋浴",
    ["STOP_SHOWER"] = " 停止",
    ["SHOWER_IN_VEHICLE"] = "你不能在车里淋浴!",
    ["IN_VEHICLE"] = "你不能在车里做这个",
    ["SIT_TOILET"] = "坐下",
    ["NEED_POOP"] = "你需要大便!",
    ["OCCUPIED_TOILET"] = "这个厕所被占用了",
    ["NEED_PEE"] = "你需要小便!",
    ["SLEEP"] = "睡觉",
    ["STOP_SLEEP"] = "醒来",
    ["NEED_SLEEP"] = "你需要睡觉!",
    ["OCCUPIED_BED"] = "这里有人在睡觉!",
    ["ALREADY_PISSING"] = "你已经在小便了!",
    ["FEEL_GOOD"] = "你感觉很好",
}
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-9 02:13 , Processed in 0.168397 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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