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

翻译

[复制链接]

升级进度: 13%

Verzood 发表于 2024-9-29 22:28:47 | 显示全部楼层 |阅读模式

Config, Locales = {}, {}

Config.Debug = false

Config.Locale = 'zh' -- en / pt / gr / fr / de / es

Config.EventPrefix = "okokGarage"

Config.ESXPrefix = "esx"

Config.onPlayerDeath = "onPlayerDeath"

Config.playerLoaded = "playerLoaded"

Config.getSharedObject = "getSharedObject"

Config.getDeathStatus = "esx_ambulancejob:getDeathStatus" -- Should be a callback that returns a variable that is true if dead, false if alive

Config.FuelResource = "native" -- "nothing" - no fuel resource, "native" - will use the FiveM natives, "okokGasStation", "legacyfuel", "ox_fuel"

Config.CameraEnabled = true -- Camera animation when taking out a vehicle

Config.ImageType = "default" -- "default" - each vehicle uses a unique image (e.g. Zentorno - zentorno.png), "type" - each vehicle type uses an image (e.g. Zentorno - car.png), "single" - all vehicles use the same image (e.g. Zentorno - vehicle.png)

Config.vImageCreator = false -- If true, it'll use vImageCreator

Config.GetVehicleAnywhere = true -- You can get your vehicle from all garages even if you didn't store it there

Config.GetVehicleModelName = true -- If true, it'll get the vehicle model name instead of the vehicle name

Config.CameraAnimationTime = 2 -- Camera animation time in seconds

Config.CameraLockTime = 200 -- Camera lock time

Config.CameraOffsetHeight = 10 -- The height of the vehicle camera after taking it out

Config.ShakeAmplitude = 0.0 -- Camera shake when viewing a vehicle (0.2 to be like in okokVehicleShop)

Config.InteractionKey = 38 -- [E] Key to open the interaction, check here the keys ID: https://docs.fivem.net/docs/game-references/controls/#controls

Config.UseOkokVehicleKeys = true
Config.KeySystem = "okokVehicleKeys" -- if Config.UseOkokVehicleKeys = false, you can change this to another key system ( okokVehicleKeys, qs-vehiclekeys, wasabi-keys, qb-vehiclekeys, jaksam-keys, custom )
Config.LockVehicle = "U" -- This is used to allow custom keybinds that players can change in their settings
Config.LockVehicleCommand = "lockvehicle"
Config.LockVehicleDescription = "Used to lock/unlock vehicle"
Config.LockVehicleAudioVolume = 0.3 -- (0.0 - 1.0)
Config.VehicleRadius = 20.0 -- This is the radius used to check if the player is close enough to lock/unlock vehicle

Config.MarkerRadius = 25 -- The view distance for the markers

Config.SaveWithKey = true -- If true, players with the vehicle key can store the vehicle. The vehicle will then be stored in the owner's garage.

Config.GiveKeysCommand = "givekeys"
Config.GiveKeysRadius = 7.5

Config.UseOkokTextUI = true
Config.UseOkOkNotify = true
Config.UseOkOkRequests = true
Config.UseOkOkBanking = true -- For transactions logs

Config.HideMinimap = true

Config.ShowBlips = true

Config.SetIntoVehicle = true -- If true, it'll teleport the player into the vehicle

Config.ShowGaragesBlipCommand = "garageblips"
Config.ShowGaragesBlip = true

Config.StoreOwnedVehiclesOnly = true -- If true, players will only be able to store vehicles they own, if false, they will be able to store any vehicle

Config.StoreVehicleFade = true -- If true, the vehicle will fade out

Config.ShowVehicleImpoundedWhenExists = true -- If true, the vehicle will be available to take out of the impound even when he's spawned in the map

Config.VehicleImpoundedOnDV = true -- If true, the vehicle will be set as impounded when he gets deleted

Config.SetVehicleImpoundAfter = 300 -- How many seconds after taking out the vehicle does it take to set as impounded
Config.CheckInterval = 60 -- How often it'll check for non existing vehicles

Config.ChangeVehicleStateOnStart = true -- If true, vehicle will be set to stored or impounded (Config.SetVehiclesImpoundedOnStart)
Config.SetVehiclesImpoundedOnStart = true -- If true, outside vehicles will be set as impounded on start, if false, they'll be set as stored

Config.UseOkokVehicleSales = false -- If true, If a vehicle is in display he won't show in the impound
Config.okokVehicleSalesName = "okokVehicleSales" -- Name of the vehicle sales script

Config.KeyMetaData = { -- Items will be used instead of the "U" key to lock/unlock vehicles. (Only ox-inventory supported at the moment - if you use another inventory with metadata and would like support to it to be added, please let us know through the tickets)
    inventoryResourceName = "ox_inventory",
    keyItemName = "keys",
    oxInventory = false,
    quasarInventory = false,
    coreInventory = false,
}

Config.HousingSystems = {
    quasarHousing = false,
    esxProperty = false,
}

Config.ImpoundCommand = "impound"
Config.ImpoundJobs = {"police", "mechanic"} -- Jobs that can impound vehicles
Config.ImpoundDistance = 5.0 -- Max distance you can impound from
Config.ImpoundTimes = {"2", "4", "6", "8", "10", "12", "14", "16", "18", "20", "22", "24"} -- Hours

Config.GlobalImpound = true -- If true, a vehicle can be taken from any impound
Config.PayToImpound = true -- Enable this if a player should be able to skip the impound time by paying.
Config.PayToImpoundFee = 300 -- This is per hour that the player gets their vehicle early
Config.RetrieveFeeEnabled = false -- If enabled, players will have to pay a one time fee when retrieving their vehicle after the timer has finished.
Config.RetrieveFee = 500 -- One time payment once vehicle is retrieved.

Config.AdminGroups = { -- Groups allowed to remove all the vehicles from the impound/give vehicle/remove vehicle/give key
    "admin",
    "superadmin"
}
Config.RemoveAllImpoundedVehiclesCommand = "removeallimpoundedvehicles"
Config.GiveVehicle = "givevehicle"
Config.RemoveVehicle = "removevehicle"
Config.GiveKeys = "adminkeys" -- Has to be different to Config.GiveKeysCommand
Config.AdminMenu = "gadmin"

Config.PlateLetters = 3 -- How many letters the plate has (Used when adding a vehicle)
Config.PlateUseSpace = true
Config.PlateNumbers = 3 -- How many numbers the plate has (Used when adding a vehicle)

Config.RandomPlateSociety = false -- If true, will generate a plate for vehicles in infinite garage

Config.CreateGarageCommand = "creategarage"

Config.SellGarageCommand = "sellgarage"
Config.SellGarageRadius = 3.0
Config.SellerComission = 5 -- In percent (%)
Config.RenewalPrice = 500
Config.RenewalIntervals = 7 -- In real life days

Config.MaxPrivateGaragesPerPlayer = 3

-- Used to show the vehicle properties in the view menu
Config.UseKMh = true
Config.MaxSpeedValue = 300
Config.MaxAcceleration = 0.6
Config.MaxBraking = 1.6
Config.MaxHandling = 10

Config.ViewCameraAngle = -60
Config.ViewCameraDistance = 5.5
Config.ViewCameraHeight = 2.0

Config.AllowRepair = true -- If a player can repair the vehicle when viewing the vehicle
Config.RepairPrice = 1000

Config.TakeOutAtView = true -- When taking the vehicle out via the view menu it'll spawn in the same location as the view vehicle

Config.LiveriesAndExtrasCommand = "liveries"
Config.AccessLiveriesExtrasJobs = { -- Add 'all' so everyone can access this menu
    'police',
    'ambulance',
}

-- COMPANY
Config.MaxEmployees = 7
Config.JobRanks = { -- These are the ranks available on the vehicle shops, you can add or remove as many as you want but leave at least 1. Don't add owner as this is automatically added.
    ["Newbie"] = {id = 1, coOwner = false},         -- ID: 1
    ["Experienced"] = {id = 2, coOwner = false},    -- ID: 2
    ["Expert"] = {id = 3, coOwner = false},         -- ID: 3
    ["Sub-Owner"] = {id = 4, coOwner = true}        -- ID: 4
}

Config.PrivateGarages = {
    blip = { blipId = 524, blipColor = 2, blipScale = 0.9, blipText = "Private Garage For Sale" },
    ownedBlip = { blipId = 524, blipColor = 3, blipScale = 0.9, blipText = "Owned Private Garage"},
    ownedMarker = { id = 36, color = { r = 31, g = 94, b = 255, a = 90 }, size = { x = 0.7, y = 0.7, z = 0.7 }, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
    storeVehicleMarker = {id = 36, color = {r = 255, g = 0, b = 0, a = 90}, size = {x = 1.25, y = 1.25, z = 1.25}, radius = 2.5, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 }, -- Marker informations for the sell vehicle marker
    radius = 1
}

Config.HireEmployeeRadius = 15.0

Config.SellBusinessReceivePercentage = 50 -- How much a player will receive for selling his business (in percentage, 50 = 50%)

Config.Companies = {
    ["Garage Shop"] = {
        coords = vec3(112.28, -630.06, 44.23),
        ownerCoords = vec3(112.28, -630.06, 44.23),
        radius = 1,
        price = 5000000,
        ownerBlip = {blipId = 475, blipColor = 38, blipScale = 0.9, blipText = "Owner Panel"},
        unownedOwnerBlip = {blipId = 476, blipColor = 2, blipScale = 0.9, blipText = "车库公司"},
        ownerMarker = {id = 21, color = {r = 31, g = 94, b = 255, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
        UnownedMarker = {id = 21, color = {r = 0, g = 255, b = 0, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
    },--[[
    ["Garage Shop 2"]   = {
        coords = vector3(-949.5,-2946.55,13.95),
        ownerCoords = vector3(-949.5,-2946.55,13.95),
        radius = 1,
        price = 12000,
        ownerBlip = {blipId = 475, blipColor = 38, blipScale = 0.9, blipText = "Owner Panel"},
        unownedOwnerBlip = {blipId = 476, blipColor = 2, blipScale = 0.9, blipText = "Unowned Company"},
        ownerMarker = {id = 21, color = {r = 31, g = 94, b = 255, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
        UnownedMarker = {id = 21, color = {r = 0, g = 255, b = 0, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },

}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-9-29 22:29:07 | 显示全部楼层
以下是您提供的代码的中文翻译:

```lua
Config, Locales = {}, {}

Config.Debug = false

Config.Locale = 'zh' -- en / pt / gr / fr / de / es

Config.EventPrefix = "okokGarage"

Config.ESXPrefix = "esx"

Config.onPlayerDeath = "onPlayerDeath"

Config.playerLoaded = "playerLoaded"

Config.getSharedObject = "getSharedObject"

Config.getDeathStatus = "esx_ambulancejob:getDeathStatus" -- 应该是一个回调,返回一个变量,如果死亡则为真,如果活着则为假

Config.FuelResource = "native" -- "nothing" - 无燃料资源, "native" - 将使用 FiveM 原生函数, "okokGasStation", "legacyfuel", "ox_fuel"

Config.CameraEnabled = true -- 拿出车辆时的相机动画

Config.ImageType = "default" -- "default" - 每辆车使用独特的图片 (例如:Zentorno - zentorno.png), "type" - 每种车辆类型使用一张图片 (例如:Zentorno - car.png), "single" - 所有车辆使用相同的图片 (例如:Zentorno - vehicle.png)

Config.vImageCreator = false -- 如果为真,将使用 vImageCreator

Config.GetVehicleAnywhere = true -- 您可以从所有车库获取您的车辆,即使您没有将其存放在那里

Config.GetVehicleModelName = true -- 如果为真,将获取车辆模型名称而不是车辆名称

Config.CameraAnimationTime = 2 -- 相机动画时间(秒)

Config.CameraLockTime = 200 -- 相机锁定时间

Config.CameraOffsetHeight = 10 -- 拿出车辆后相机的高度

Config.ShakeAmplitude = 0.0 -- 查看车辆时的相机震动(0.2 使其像在 okokVehicleShop 中一样)

Config.InteractionKey = 38 -- 打开交互的按键,查看这里的按键 ID: https://docs.fivem.net/docs/game-references/controls/#controls

Config.UseOkokVehicleKeys = true
Config.KeySystem = "okokVehicleKeys" -- 如果 Config.UseOkokVehicleKeys = false,您可以将其更改为其他按键系统 (okokVehicleKeys, qs-vehiclekeys, wasabi-keys, qb-vehiclekeys, jaksam-keys, custom)
Config.LockVehicle = "U" -- 用于允许玩家在其设置中更改自定义按键绑定
Config.LockVehicleCommand = "lockvehicle"
Config.LockVehicleDescription = "用于锁定/解锁车辆"
Config.LockVehicleAudioVolume = 0.3 -- (0.0 - 1.0)
Config.VehicleRadius = 20.0 -- 用于检查玩家是否足够接近以锁定/解锁车辆的半径

Config.MarkerRadius = 25 -- 标记的视距

Config.SaveWithKey = true -- 如果为真,拥有车辆钥匙的玩家可以存放车辆。车辆将存放在车主的车库中。

Config.GiveKeysCommand = "givekeys"
Config.GiveKeysRadius = 7.5

Config.UseOkokTextUI = true
Config.UseOkOkNotify = true
Config.UseOkOkRequests = true
Config.UseOkOkBanking = true -- 用于交易日志

Config.HideMinimap = true

Config.ShowBlips = true

Config.SetIntoVehicle = true -- 如果为真,将传送玩家到车辆中

Config.ShowGaragesBlipCommand = "garageblips"
Config.ShowGaragesBlip = true

Config.StoreOwnedVehiclesOnly = true -- 如果为真,玩家只能存放他们拥有的车辆,如果为假,他们可以存放任何车辆

Config.StoreVehicleFade = true -- 如果为真,车辆将淡出

Config.ShowVehicleImpoundedWhenExists = true -- 如果为真,即使车辆在地图上生成,车辆也可以从扣押中取出

Config.VehicleImpoundedOnDV = true -- 如果为真,当车辆被删除时,将其设置为扣押状态

Config.SetVehicleImpoundAfter = 300 -- 拿出车辆后多少秒后设置为扣押
Config.CheckInterval = 60 -- 多久检查一次不存在的车辆

Config.ChangeVehicleStateOnStart = true -- 如果为真,车辆将在开始时设置为存放或扣押 (Config.SetVehiclesImpoundedOnStart)
Config.SetVehiclesImpoundedOnStart = true -- 如果为真,外部车辆将在开始时设置为扣押,如果为假,它们将被设置为存放

Config.UseOkokVehicleSales = false -- 如果为真,如果车辆在展示中,它将不会显示在扣押中
Config.okokVehicleSalesName = "ok
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 20:45 , Processed in 0.068531 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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