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

翻译一下

[复制链接]

升级进度: 70%

Toyota 发表于 2024-4-23 20:52:49 | 显示全部楼层 |阅读模式
帮我翻译一下内容为简体中文


Config.SaveInterval = 5 -- Interval in Minutes to Save Properties
Config.CanAlwaysExit = true -- Disabling this allows players to be locked in
Config.OwnerCanAlwaysEnter = true -- Disabling this means the owner can't enter the property unless door is unlocked
Config.MaxNameLength = 20 -- Max Name Length for Owned Properties Default: 20
Config.CanCustomiseInventoryAndWardrobePositions = true -- Allow users to customise inventory and wardrobe positions Default: true
Config.WipeCustomNameOnSell = true -- Wipe custom name on sell Default: true
Config.WipeFurnitureOnSell = true -- Wipe custom name on sell Default: true


--------------------- Zone Suggested Prices  ---------------------------------
Config.ZonePriceOptions = {
    Enabled = true, -- Enable/Disable Zone Prices Modifiers Default: true
    Default = 250000, -- Default Price of a property Default: 250000
}

-- The Amount to Multiply the Default Price by (if the above is enabled):
Config.ZonePrices = {
  [0] = 10, -- Posh
  [1] = 7, -- Nice
  [2] = 5, -- Above Average
  [3] = 3, -- Bellow Average
  [4] = 2, -- Crap
  [5] = 1, -- Scum
}

--------------------- Raid Settings ---------------------------------
Config.Raiding = {
  Enabled = true, -- Enable/Disable Raiding Default: true
  CanAdminsRaid = true, -- Can Admins Raid Houses Default: true
  ItemRequired = { -- Item Required to Raid -- Remove To Disable
    RemoveItem = true, -- Remove Item from Inventory Default: true
    name = "bread", -- Item Name Default: "bread"
    label = "Bread", -- Item label Default: "Bread"
    ItemCount = 1,   -- Item Count Default: 1
  },
  Animation = {
    type = "Scenario",
    Scenario = "WORLD_HUMAN_HAMMERING",
  },
}

--------------------- Garage Settings ---------------------------------
Config.Garage = {
  Enabled = true, -- Enable/Disable Garage Default: true
  OwnedVehiclesOnly = true, -- Only allow owned vehicles to be stored Default: true
  MySQLquery = "UPDATE `owned_vehicles` SET `stored` = ? WHERE `plate` = ?" -- MySQL Query to store vehicles `?` = True/false, Vehicle Plate
}

--------------------- Log Settings ---------------------------------
if IsDuplicityVersion() then
  Config.Logs = {
    Webhook = "",
    LogLevel = 1

    ----------- Log Levels ------------
    -- 0 = No Logs
    -- 1 = Logs Major Actions
    -- 2 = Logs Major + Minor Actions
    -- 3 = Logs All Actions
    -------------------------------------
  }
end
--------------------- Furniture Settings ---------------------------------
Config.Furniture = {
  Enabled = true,
  RotationSpeed = 0.4, -- Object Rotation Speed
  MovementSpeed = 0.01, -- Object Movement Speed
  MovementZspeed = 0.05, -- Object Z Movement Speed
  WipeFurnitureOnSell = true, -- Wipe Furniture On Sell Default: true
  Controls = {
    PlusX = 174, -- lEFT Arrow
    MinusX = 175, -- RIGHT Arrow
    RotateRight = 19, -- Alt,
    RotateLeft = 21, -- Shift,
    Up = 96, -- UP Arrow
    Down = 97, -- DOWN Arrow
    Confirm = 201, -- ENTER
    Exit = 194, -- BACKSPACE
    PlusY = 172, -- SHIFT
    MinusY = 173, -- SHIFT
  }
}

--------------------- CCTV Settings ---------------------------------
Config.CCTV = {
  Enabled = true,
  PictureWebook = IsDuplicityVersion() and "" or "DO NOT CHANGE THIS STRING", -- Set a discord webhook here to enable taking pictures of the CCTV (link is copied to user`s clipboard)
  HeightAboveDoor = 2.5, -- Height above the door to place the cctv camera
  FOV = 80.0, -- Camera Field of View
  MaxLeftRotation = 80,
  MaxZoom = 30,
  MinZoom = 100,
  MaxRightRotation = -50,
  MaxUpRotation = 10,
  MaxDownRotation = -45,
  RotateSpeed = 0.3, -- Camera Rotation Speed
  Controls = {
    Left = 34, -- lEFT Arrow
    Right = 35, -- RIGHT Arrow
    Screenshot = 201, -- ENTER
    NightVision = 38, -- E
    ZoomIn = 96, -- UP Arrow
    ZoomOut = 97, -- DOWN Arrow
    Up = 32, -- UP Arrow
    Down = 33, -- DOWN Arrow
    Exit = 194, -- BACKSPACE
  }
}


-------- Groups allowed to use Admin Functions -------------------
Config.AllowedGroups = {
  -- Note: Superadmin is not a group In ESX
  "admin"
}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-4-23 20:53:16 | 显示全部楼层
Config.SaveInterval = 5 -- 物业保存间隔时间(分钟)
Config.CanAlwaysExit = true -- 禁用此选项将允许玩家被锁在里面
Config.OwnerCanAlwaysEnter = true -- 禁用此选项将意味着物业所有者无法进入物业,除非门已解锁
Config.MaxNameLength = 20 -- 拥有物业的最大名称长度,默认为20
Config.CanCustomiseInventoryAndWardrobePositions = true -- 允许用户自定义物品和衣柜位置,默认为真
Config.WipeCustomNameOnSell = true -- 出售物业时清除自定义名称,默认为真
Config.WipeFurnitureOnSell = true -- 出售物业时清除家具,默认为真

--------------------- 区域建议价格  ---------------------------------
Config.ZonePriceOptions = {
    Enabled = true, -- 启用/禁用区域价格修正 默认:真
    Default = 250000, -- 物业的默认价格 默认:250000
}

-- 默认价格乘以的倍数(如果上面的选项启用):
Config.ZonePrices = {
  [0] = 10, -- 豪华
  [1] = 7, -- 不错
  [2] = 5, -- 高于平均
  [3] = 3, -- 低于平均
  [4] = 2, -- 糟糕
  [5] = 1, -- 渣滓
}

--------------------- 掠夺设置 ---------------------------------
Config.Raiding = {
  Enabled = true, -- 启用/禁用掠夺 默认:真
  CanAdminsRaid = true, -- 管理员是否可以掠夺房屋 默认:真
  ItemRequired = { -- 掠夺所需的物品 – 移除以禁用
    RemoveItem = true, -- 从库存中移除物品 默认:真
    name = "bread", -- 物品名称 默认: "面包"
    label = "Bread", -- 物品标签 默认: "面包"
    ItemCount = 1,   -- 物品数量 默认:1
  },
  Animation = {
    type = "Scenario",
    Scenario = "WORLD_HUMAN_HAMMERING",
  },
}

--------------------- 车库设置 ---------------------------------
Config.Garage = {
  Enabled = true, -- 启用/禁用车库 默认:真
  OwnedVehiclesOnly = true, -- 仅允许存储所拥有的车辆 默认:真
  MySQLquery = "UPDATE `owned_vehicles` SET `stored` = ? WHERE `plate` = ?" -- 存储车辆的MySQL查询 `?` = True/false, 车辆号牌
}

--------------------- 日志设置 ---------------------------------
if IsDuplicityVersion() then
  Config.Logs = {
    Webhook = "",
    LogLevel = 1

    ----------- Log Levels ------------
    -- 0 = 无日志
    -- 1 = 记录重要操作
    -- 2 = 记录重要+次要操作
    -- 3 = 记录所有操作
    -------------------------------------
  }
end
--------------------- 家具设置 ---------------------------------
Config.Furniture = {
  Enabled = true,
  RotationSpeed = 0.4, -- 物件旋转速度
  MovementSpeed = 0.01, -- 物件移动速度
  MovementZspeed = 0.05, -- 物件Z轴移动速度
  WipeFurnitureOnSell = true, -- 出售物业时清除家具 默认:真
  Controls = {
    PlusX = 174, -- 左箭头
    MinusX = 175, -- 右箭头
    RotateRight = 19, -- Alt
    RotateLeft = 21, -- Shift
    Up = 96, -- 上箭头
    Down = 97, -- 下箭头
    Confirm = 201, -- 回车
    Exit = 194, -- 退格
    PlusY = 172, -- SHIFT
    MinusY = 173, -- SHIFT
  }
}

--------------------- 监控设置 ---------------------------------
Config.CCTV = {
  Enabled = true, -- 启用/禁用监控 默认:真
  PictureWebook = IsDuplicityVersion() and "" or "DO NOT CHANGE THIS STRING", -- 在此处设置一个Discord Webhook,以启用CCTV的拍照功能(链接已复制到用户的剪贴板)
  HeightAboveDoor = 2.5, -- 摄像头安装在门上的高度
  FOV = 80.0, -- 摄像头视野
  MaxLeftRotation = 80,
  MaxZoom = 30,
  MinZoom = 100,
  MaxRightRotation = -50,
  MaxUpRotation = 10,
  MaxDownRotation = -45,
  RotateSpeed = 0.3, -- 摄像头旋转速度
  Controls = {
    Left = 34, -- 左箭头
    Right = 35, -- 右箭头
    Screenshot = 201, -- 回车
    NightVision = 38, -- E
    ZoomIn = 96, -- 上箭头
    ZoomOut = 97, -- 下箭头
    Up = 32, -- 上箭头
    Down = 33, -- 下箭头
    Exit = 194, -- 退格
  }
}


-------- 允许使用管理员功能的组别 -------------------
Config.AllowedGroups = {
  -- 注意:Superadmin不是ESX中的一个组
  "admin"
}

这段代码应该放在服务器的脚本文件server.lua中。
回复

使用道具 举报

ahome_bigavatar:guest
ahome_bigavatar:welcomelogin
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-19 04:00 , Processed in 0.638362 second(s), 38 queries .

Powered by Discuz! X3.4

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

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