翻译成中文,保留源代码
Config = {}
Config.Debug = false
--SERVER SETTINGS
Config.Framework = "auto-detect" -- Framework | types: auto-detect, qbcore, ESX, standalone
Config.NewESX = true
Config.Target = "auto-detect" -- Target | types: auto-detect, qb-target
Config.Menu = "ox_lib" -- ContextMenu | types: ox_lib, qb-menu
Config.NotificationType = "ox_lib" -- ESX, ox_lib, qbcore
Config.Progress = "ox" -- progressBars, ox, qbcore
Config.WeaponsAsItems = true -- if you are using old types of inventories which does not include weapons as items set this to false!
Config.Logs = { enabled = true, type = "webhook" } -- use webhook or ox_lib (datadog) Can be changed in server > sv_utils.lua
Config.DropPlayer = false -- Drop (Kick) Player if tries to cheat!
Config.AnticheatBan = false -- Change in server/sv_Utils.lua!!! WIll not work by default you need to add your custom trigger to ban player!
--Craftings
Config.Craftings = {
Crafting_default_1 = { -- BurgerShot example / PolyZone
--Crafting Settings
Occupied = false, -- Dont change
Label = "Grill", --display label on help or target
job = { name = "burgershot", grade = 0 }, -- Required job to open crafting station
type = "PolyZone", -- Table, Marker, PolyZone
Positions = { coords = vec3(-1198.41, -894.95, 13.89), radius = 0.7, debug = false }, -- Circle PolyZone and coords for Table and Marker (if selected type)
Table = { Type = "target" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 10.0, DrawDistance = 10.0 },
Marker = { DrawDistance = 100.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-drumstick-bite",
--Items Settings
CraftingItems = { -- Table for all craftable Items
Steak = {
Title = "Steak", -- Context label
Progress = "Grilling...", -- Progress bar label
Icon = "fa-solid fa-drumstick-bite", -- icon for context
Experience = { Required = 0, Add = 0 }, -- Required exp and How much should be add after crafting.
Duration = 10, -- seconds to make!
Blueprint = { item = nil, count = nil }, -- Blueprint item
RequiredItems = { -- Table for required items
{ item = "raw_steak", label = "Raw Steak", count = 1, remove = true }, -- Which Items should are required
},
AddItems = { -- Table for item add
{ item = "steak", label = "Steak", count = 1 }, -- Which Items should be added
},
Animation = { enabled = false, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, --TaskStartScenarioAtPosition
Prop = {
enabled = false, -- Attach Prop Settings
prop = `prop_tool_screwdvr02`, -- Prop model
pos = vec3(0.14, 0.0, -0.01), -- Prop position
rot = vec3(60.0, -147.0, 30.0), -- Prop rot
bone = 57005 -- Player bone index
},
},
}
},
Crafting_default_2 = { -- Crafting Station police expemple / Marker
Occupied = false, -- Dont change
Label = "CMMG MK47 MUTANT BLUEPRINT", --display label on help or target
job = { name = "", grade = 0 }, -- Required job to open crafting station
type = "Table", -- Table, Marker, PolyZone
Positions = { coords = vector3(-2568.31, 3735.5, 13.42), radius = 1.0, debug = false }, -- Circle PolyZone
Table = { Type = "target" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 10.0,
DrawDistance = 100.0 },
Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-wrench",
CraftingItems = { -- Table for all craftable Items
weapon_mk47 = {
Title = "CMMG MK47 MUTANT BLUEPRINT", -- Context label
Progress = "Crafting...", -- Progress bar label
Icon = "fa-solid fa-gun", -- icon for context
Experience = { Required = 0, Add = 1 }, -- Required exp and How much should be add after crafting.
Duration = 60, -- seconds to make!
Blueprint = { item = "blueprint_mk47", count = 1 }, -- Blueprint item
RequiredItems = { -- Table for required items
{ item = "chmel...", label = "Scrap Metal", count = 20, remove = true },
{ item = "scrap", label = "Scrap Metal", count = 20, remove = true }, -- Which Items should are required
},
AddItems = { -- Table for item add
{ item = "weapon_mk47", label = "CMMG MK47 MUTANT", count = 1 }, -- Which Items should be added
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, --TaskStartScenarioAtPosition
Prop = {
enabled = true, -- Attach Prop Settings
prop = `prop_tool_screwdvr02`, -- Prop model
pos = vec3(0.14, 0.0, -0.01), -- Prop position
rot = vec3(60.0, -147.0, 30.0), -- Prop rot
bone = 57005 -- Player bone index
},
},
}
},
Crafting_default_3 = { -- Crafting Mechanic expemple / Table - Help
Occupied = false, -- Dont change
Label = "Mechanic Crafting", --display label on help or target
job = { name = "bennys", grade = 0 }, -- Required job to open crafting station
type = "Table", -- Table, Marker, PolyZone
Positions = { coords = vec3(-213.91, -1333.83, 29.89), radius = 1.0, debug = false }, -- Circle PolyZone
Table = { Type = "help" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 2.39 + 180.0,
DrawDistance = 100.0 },
Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-wrench",
CraftingItems = { -- Table for all craftable Items
repairkit = {
Title = "Repair kit", -- Context label
Progress = "Crafting...", -- Progress bar label
Icon = "fa-solid fa-wrench", -- icon for context
Experience = { Required = 0, Add = 0 }, -- Required exp and How much should be add after crafting.
Duration = 10, -- seconds to make!
Blueprint = { item = nil, count = nil }, -- Blueprint item
RequiredItems = { -- Table for required items
{ item = "scrap", label = "Scrap Metal", count = 1, remove = true }, -- Which Items should are required
},
AddItems = { -- Table for item add
{ item = "repairkit", label = "Repair Kit", count = 1 }, -- Which Items should be added
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, --TaskStartScenarioAtPosition
Prop = {
enabled = true, -- Attach Prop Settings
prop = `prop_tool_screwdvr02`, -- Prop model
pos = vec3(0.14, 0.0, -0.01), -- Prop position
rot = vec3(60.0, -147.0, 30.0), -- Prop rot
bone = 57005 -- Player bone index
},
},
}
},
Crafting_default_4 = { -- Crafting BlackMarker expemple / Table - Target
Occupied = false, -- Dont change
Label = "Crafting", --display label on help or target
job = { name = nil, grade = nil }, -- Required job to open crafting station
type = "Table", -- Table, Marker, PolyZone
Positions = { coords = vec3(989.04, -139.82, 72.09), radius = 1.0, debug = false }, -- Circle PolyZone
Table = { Type = "target" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 64.01 + 180.0,
DrawDistance = 100.0 },
Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-wrench",
CraftingItems = { -- Table for all craftable Items
weapon_pistol = {
Title = "Pistol", -- Context label
Progress = "Crafting...", -- Progress bar label
Icon = "fa-solid fa-gun", -- icon for context
Experience = { Required = 0, Add = 1 }, -- Required exp and How much should be add after crafting.
Duration = 10, -- seconds to make!
Blueprint = { item = nil, count = nil }, -- Blueprint item
RequiredItems = { -- Table for required items
{ item = "scrap", label = "Scrap Metal", count = 5, remove = true }, -- Which Items should are required
},
AddItems = { -- Table for item add
{ item = "weapon_pistol", label = "Pistol", count = 1 }, -- Which Items should be added
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, --TaskStartScenarioAtPosition
Prop = {
enabled = true, -- Attach Prop Settings
prop = `prop_tool_screwdvr02`, -- Prop model
pos = vec3(0.14, 0.0, -0.01), -- Prop position
rot = vec3(60.0, -147.0, 30.0), -- Prop rot
bone = 57005 -- Player bone index
},
},
weapon_mk47 = {
Title = "CMMG MK47 MUTANT", -- Context label
Progress = "Crafting...", -- Progress bar label
Icon = "fa-solid fa-gun", -- icon for context
Experience = { Required = 10, Add = 1 }, -- Required exp and How much should be add after crafting.
Duration = 10, -- seconds to make!
Blueprint = { item = "blueprint_mk47", label = "CMMG MK47 MUTANT BLUEPRINT", count = 1 }, -- Blueprint item
RequiredItems = { -- Table for required items
{ item = "scrap", label = "Scrap Metal", count = 20, remove = true }, -- Which Items should are required
},
AddItems = { -- Table for item add
{ item = "weapon_mk47", label = "CMMG MK47 MUTANT", count = 1 }, -- Which Items should be added
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, --TaskStartScenarioAtPosition
Prop = {
enabled = true, -- Attach Prop Settings
prop = `prop_tool_screwdvr02`, -- Prop model
pos = vec3(0.14, 0.0, -0.01), -- Prop position
rot = vec3(60.0, -147.0, 30.0), -- Prop rot
bone = 57005 -- Player bone index
},
},
}
},
}
Config = {}
Config.Debug = false
-- 服务器设置
Config.Framework = "auto-detect" -- 框架 | 类型: auto-detect, qbcore, ESX, standalone
Config.NewESX = true
Config.Target = "auto-detect" -- 目标 | 类型: auto-detect, qb-target
Config.Menu = "ox_lib" -- 上下文菜单 | 类型: ox_lib, qb-menu
Config.NotificationType = "ox_lib" -- 通知类型: ESX, ox_lib, qbcore
Config.Progress = "ox" -- 进度条, ox, qbcore
Config.WeaponsAsItems = true -- 如果你使用的是不包含武器作为物品的旧类型库存,请将此设置为 false!
Config.Logs = { enabled = true, type = "webhook" } -- 使用 webhook 或 ox_lib (datadog) 可以在服务器 > sv_utils.lua 中更改
Config.DropPlayer = false -- 如果玩家尝试作弊,则踢出玩家!
Config.AnticheatBan = false -- 在 server/sv_Utils.lua 中更改!!! 默认情况下将不起作用,你需要添加自定义触发器来禁止玩家!
-- 制作
Config.Craftings = {
Crafting_default_1 = { -- BurgerShot 示例 / PolyZone
-- 制作设置
Occupied = false, -- 不要更改
Label = "Grill", -- 在帮助或目标上显示的标签
job = { name = "burgershot", grade = 0 }, -- 打开制作站所需的工作
type = "PolyZone", -- 表, 标记, PolyZone
Positions = { coords = vec3(-1198.41, -894.95, 13.89), radius = 0.7, debug = false }, -- 圆形 PolyZone 和表格及标记的坐标(如果选择了类型)
Table = { Type = "target" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 10.0, DrawDistance = 10.0 },
Marker = { DrawDistance = 100.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-drumstick-bite",
-- 物品设置
CraftingItems = { -- 所有可制作物品的表
Steak = {
Title = "Steak", -- 上下文标签
Progress = "Grilling...", -- 进度条标签
Icon = "fa-solid fa-drumstick-bite", -- 上下文图标
Experience = { Required = 0, Add = 0 }, -- 所需经验和制作后应增加的经验
Duration = 10, -- 制作所需时间(秒)
Blueprint = { item = nil, count = nil }, -- 蓝图物品
RequiredItems = { -- 所需物品的表
{ item = "raw_steak", label = "Raw Steak", count = 1, remove = true }, -- 所需物品
},
AddItems = { -- 添加物品的表
{ item = "steak", label = "Steak", count = 1 }, -- 添加的物品
},
Animation = { enabled = false, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, -- TaskStartScenarioAtPosition
Prop = {
enabled = false, -- 附加道具设置
prop = `prop_tool_screwdvr02`, -- 道具模型
pos = vec3(0.14, 0.0, -0.01), -- 道具位置
rot = vec3(60.0, -147.0, 30.0), -- 道具旋转
bone = 57005 -- 玩家骨骼索引
},
},
}
},
Crafting_default_2 = { -- 制作站警察示例 / 标记
Occupied = false, -- 不要更改
Label = "CMMG MK47 MUTANT BLUEPRINT", -- 在帮助或目标上显示的标签
job = { name = "", grade = 0 }, -- 打开制作站所需的工作
type = "Table", -- 表, 标记, PolyZone
Positions = { coords = vector3(-2568.31, 3735.5, 13.42), radius = 1.0, debug = false }, -- 圆形 PolyZone
Table = { Type = "target" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 10.0,
DrawDistance = 100.0 },
Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-wrench",
CraftingItems = { -- 所有可制作物品的表
weapon_mk47 = {
Title = "CMMG MK47 MUTANT BLUEPRINT", -- 上下文标签
Progress = "Crafting...", -- 进度条标签
Icon = "fa-solid fa-gun", -- 上下文图标
Experience = { Required = 0, Add = 1 }, -- 所需经验和制作后应增加的经验
Duration = 60, -- 制作所需时间(秒)
Blueprint = { item = "blueprint_mk47", count = 1 }, -- 蓝图物品
RequiredItems = { -- 所需物品的表
{ item = "chmel...", label = "Scrap Metal", count = 20, remove = true },
{ item = "scrap", label = "Scrap Metal", count = 20, remove = true }, -- 所需物品
},
AddItems = { -- 添加物品的表
{ item = "weapon_mk47", label = "CMMG MK47 MUTANT", count = 1 }, -- 添加的物品
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, -- TaskStartScenarioAtPosition
Prop = {
enabled = true, -- 附加道具设置
prop = `prop_tool_screwdvr02`, -- 道具模型
pos = vec3(0.14, 0.0, -0.01), -- 道具位置
rot = vec3(60.0, -147.0, 30.0), -- 道具旋转
bone = 57005 -- 玩家骨骼索引
},
},
}
},
Crafting_default_3 = { -- 制作机械示例 / 表 - 帮助
Occupied = false, -- 不要更改
Label = "Mechanic Crafting", -- 在帮助或目标上显示的标签
job = { name = "bennys", grade = 0 }, -- 打开制作站所需的工作
type = "Table", -- 表, 标记, PolyZone
Positions = { coords = vec3(-213.91, -1333.83, 29.89), radius = 1.0, debug = false }, -- 圆形 PolyZone
Table = { Type = "help" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 2.39 + 180.0,
DrawDistance = 100.0 },
Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-wrench",
CraftingItems = { -- 所有可制作物品的表
repairkit = {
Title = "Repair kit", -- 上下文标签
Progress = "Crafting...", -- 进度条标签
Icon = "fa-solid fa-wrench", -- 上下文图标
Experience = { Required = 0, Add = 0 }, -- 所需经验和制作后应增加的经验
Duration = 10, -- 制作所需时间(秒)
Blueprint = { item = nil, count = nil }, -- 蓝图物品
RequiredItems = { -- 所需物品的表
{ item = "scrap", label = "Scrap Metal", count = 1, remove = true }, -- 所需物品
},
AddItems = { -- 添加物品的表
{ item = "repairkit", label = "Repair Kit", count = 1 }, -- 添加的物品
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, -- TaskStartScenarioAtPosition
Prop = {
enabled = true, -- 附加道具设置
prop = `prop_tool_screwdvr02`, -- 道具模型
pos = vec3(0.14, 0.0, -0.01), -- 道具位置
rot = vec3(60.0, -147.0, 30.0), -- 道具旋转
bone = 57005 -- 玩家骨骼索引
},
},
}
},
Crafting_default_4 = { -- 制作黑市示例 / 表 - 目标
Occupied = false, -- 不要更改
Label = "Crafting", -- 在帮助或目标上显示的标签
job = { name = nil, grade = nil }, -- 打开制作站所需的工作
type = "Table", -- 表, 标记, PolyZone
Positions = { coords = vec3(989.04, -139.82, 72.09), radius = 1.0, debug = false }, -- 圆形 PolyZone
Table = { Type = "target" --[] , Prop = `gr_prop_gr_bench_04a`, Heading = 64.01 + 180.0,
DrawDistance = 100.0 },
Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
Color = { r = 8, g = 137, b = 255, a = 150 } },
TargetIcon = "fas fa-wrench",
CraftingItems = { -- 所有可制作物品的表
weapon_pistol = {
Title = "Pistol", -- 上下文标签
Progress = "Crafting...", -- 进度条标签
Icon = "fa-solid fa-gun", -- 上下文图标
Experience = { Required = 0, Add = 1 }, -- 所需经验和制作后应增加的经验
Duration = 10, -- 制作所需时间(秒)
Blueprint = { item = nil, count = nil }, -- 蓝图物品
RequiredItems = { -- 所需物品的表
{ item = "scrap", label = "Scrap Metal", count = 5, remove = true }, -- 所需物品
},
AddItems = { -- 添加物品的表
{ item = "weapon_pistol", label = "Pistol", count = 1 }, -- 添加的物品
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, -- TaskStartScenarioAtPosition
Prop = {
enabled = true, -- 附加道具设置
prop = `prop_tool_screwdvr02`, -- 道具模型
pos = vec3(0.14, 0.0, -0.01), -- 道具位置
rot = vec3(60.0, -147.0, 30.0), -- 道具旋转
bone = 57005 -- 玩家骨骼索引
},
},
weapon_mk47 = {
Title = "CMMG MK47 MUTANT", -- 上下文标签
Progress = "Crafting...", -- 进度条标签
Icon = "fa-solid fa-gun", -- 上下文图标
Experience = { Required = 10, Add = 1 }, -- 所需经验和制作后应增加的经验
Duration = 10, -- 制作所需时间(秒)
Blueprint = { item = "blueprint_mk47", label = "CMMG MK47 MUTANT BLUEPRINT", count = 1 }, -- 蓝图物品
RequiredItems = { -- 所需物品的表
{ item = "scrap", label = "Scrap Metal", count = 20, remove = true }, -- 所需物品
},
AddItems = { -- 添加物品的表
{ item = "weapon_mk47", label = "CMMG MK47 MUTANT", count = 1 }, -- 添加的物品
},
Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[] }, -- TaskStartScenarioAtPosition
Prop = {
enabled = true, -- 附加道具设置
prop = `prop_tool_screwdvr02`, -- 道具模型
pos = vec3(0.14, 0.0, -0.01), -- 道具位置
rot = vec3(60.0, -147.0, 30.0), -- 道具旋转
bone = 57005 -- 玩家骨骼索引
},
},
}
},
}
页:
[1]