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"] = "你感觉很好",
}