alim000 发表于 2024-8-10 20:16:21

请翻译中文 保留原有代码


Config, Locales = {}, {}

Config.Locale = 'en' -- en / pt (not yet) / es (not yet) / fr (not yet) / de (not yet)

Config.UseOkokTextUI = true -- true = Use okokTextUI / false = Use ESX TextUI

Config.UseOkokNotify = true -- true = Use okokNotify / false = Use ESX Notify

Config.UseOkokGarage = false -- true = Use okokGarage / false = Use config settings

Config.UseOkokBilling = true -- true = Use okokBilling / false = Implement your own billing system

Config.UseOkokGasStation = true -- true = Use okokGasStation / false = Implement your own gas station system

Config.UseTarget = true -- true = Use target system / false = Use TextUI

Config.UseInteractSound = false -- true = Use interact sound / false = Don't use interact sound ( https://github.com/qbcore-framework/interact-sound )

Config.BillPlateOwner = true -- true = Bill the owner of the vehicle / false = Bill the player who is driving the vehicle

Config.ShowRadarsOnMap = true -- true = Show radars on map / false = Don't show radars on map

Config.UseKMH = true -- true = Use KMH / false = Use MPH

Config.OpenPoliceMenuComand = 'policemenu' -- Command to open the police menu

Config.OpenPoliceMenuKey = 'F6' -- Key to open the police menu

Config.CuffPlayerCommand = 'cuff' -- Command to cuff a player

Config.CuffPlayerKey = 'Z' -- Key to cuff a player

Config.EventPrefix = 'okokPoliceJob' -- Event prefix

Config.ContextMenuSystem = 'okok-menu' -- Context menu system ( 'okok-menu' / 'ox-menu' )

Config.TargetSystem = 'ox-target' -- Target system ( 'ox-target' )

Config.InventorySystem = 'ox-inventory' -- Inventory system ( 'ox-inventory' / 'qs-inventory' )

Config.ClothingSystem = 'esx-skin' -- Clothing system ( 'esx-skin' / 'illenium-appearance' )

Config.HandcuffItem = 'handcuffs' -- Handcuff item name

Config.PhoneNumberFormat = 'xxx xxx xxx' -- Phone number format

Config.KeySystem = 'qs-vehiclekeys' -- Key system ( 'wasabi-keys' / 'qs-vehiclekeys' / 'jaksam-keys' )

Config.TrashName = 'policetrash' -- Trash name

Config.StashName = 'policestash' -- Stash name

Config.EvidencesName = 'policeevidences' -- Evidences name

Config.EscortOnlyIfHandcuffed = false -- true = Only escort if handcuffed / false = Escort without handcuffed

Config.WarpPedIntoVehicle = false -- true = Warp ped into vehicle / false = The vehicle will be spawned near the ped

Config.SetVehicleDoorsLockedOnSpawn = false -- true = Set vehicle doors locked on spawn / false = Set vehicle doors unlocked on spawn

Config.RandomSocietyPlate = false -- true = Random society plate / false = Use the plate defined in the config

Config.UsePlayerGPSBlips = true -- true = Use player GPS blips / false = Don't use player GPS blips

Config.PlacePropKey = 38 -- Key to place a prop (E)

Config.RemovePropKey = 177 -- Key to remove a prop (BACKSPACE)

Config.TackleKeys = { 21, 38 } -- Keys to tackle a player (SHIFT + E)

Config.PoliceJobs = { 'police', 'sheriff' }

Config.MarkerID = 21 -- The marker ID for the job locations

Config.VehicleMarker = 36 -- The marker ID for the vehicle locations

Config.HelicopterMarker = 34 -- The marker ID for the helicopter locations

Config.BoatMarker = 35 -- The marker ID for the boat locations

Config.MarkerColors = { r = 31, g = 94, b = 255, a = 90 } -- The marker colors for the job locations

Config.StoreMarkerColors = { r = 255, g = 0, b = 0, a = 90 } -- The marker colors for the vehicle locations

Config.RemoveOwnOfficerBlip = true -- true = Remove own officer blip / false = Keep own officer blip

Config.UpdateJobBlipsInterval = 1 -- The interval to update the officer blips in seconds, lower values can cause performance issues

Config.RemoveItemsOnJail = true -- true = Remove items on jail / false = Keep items on jail

Config.CommunityServiceMaxDistance = 100 -- if the player is more than 100 meters away from the community service location, the player will be teleported to the location

Config.CommunityServiceAddedMonths = 5 -- the months added to the player's sentence if he tries to escape from the community service location

Config.HandsUpAnimation = { dict = 'missminuteman_1ig_2', anim = 'handsup_base' } -- The hands up animation

Config.UseBuiltInCommunityService = true -- true = Use built-in community service

Config.UseBuiltInPrison = true -- true = Use built-in prison

Config.PrisonSystem = 'rcore-prison' -- The prison system if you set Config.UseBuiltInPrison to false ( 'rcore-prison' only for now )

Config.UseBlips = true -- true = Use blips / false = Don't use blips

Config.AllowCuffToEveryone = false -- true = Allow cuff to everyone / false = Allow cuff only to police jobs

Config.RemovePrisonCommand = 'removeprison' -- Command to remove a player from prison

Config.RemoveCommunityServiceCommand = 'removecommunity' -- Command to remove a player from community service


ChatGPT 发表于 2024-8-10 20:26:29

Config, Locales = {}, {}

Config.Locale = 'en' -- 语言设置(en / pt(尚未实现) / es(尚未实现) / fr(尚未实现) / de(尚未实现))

Config.UseOkokTextUI = true -- true = 使用 okokTextUI / false = 使用 ESX TextUI

Config.UseOkokNotify = true -- true = 使用 okokNotify / false = 使用 ESX Notify

Config.UseOkokGarage = false -- true = 使用 okokGarage / false = 使用配置设置

Config.UseOkokBilling = true -- true = 使用 okokBilling / false = 实现自己的计费系统

Config.UseOkokGasStation = true -- true = 使用 okokGasStation / false = 实现自己的加油站系统

Config.UseTarget = true -- true = 使用目标系统 / false = 使用 TextUI

Config.UseInteractSound = false -- true = 使用互动音效 / false = 不使用互动音效 ( https://github.com/qbcore-framework/interact-sound )

Config.BillPlateOwner = true -- true = 向车辆所有者收费 / false = 向驾驶车辆的玩家收费

Config.ShowRadarsOnMap = true -- true = 在地图上显示雷达 / false = 不在地图上显示雷达

Config.UseKMH = true -- true = 使用公里/小时 (KMH) / false = 使用英里/小时 (MPH)

Config.OpenPoliceMenuComand = 'policemenu' -- 打开警察菜单的命令

Config.OpenPoliceMenuKey = 'F6' -- 打开警察菜单的快捷键

Config.CuffPlayerCommand = 'cuff' -- 拘捕玩家的命令

Config.CuffPlayerKey = 'Z' -- 拘捕玩家的快捷键

Config.EventPrefix = 'okokPoliceJob' -- 事件前缀

Config.ContextMenuSystem = 'okok-menu' -- 上下文菜单系统 ('okok-menu' / 'ox-menu')

Config.TargetSystem = 'ox-target' -- 目标系统 ('ox-target')

Config.InventorySystem = 'ox-inventory' -- 背包系统 ('ox-inventory' / 'qs-inventory')

Config.ClothingSystem = 'esx-skin' -- 服装系统 ('esx-skin' / 'illenium-appearance')

Config.HandcuffItem = 'handcuffs' -- 手铐物品名称

Config.PhoneNumberFormat = 'xxx xxx xxx' -- 电话号码格式

Config.KeySystem = 'qs-vehiclekeys' -- 钥匙系统 ('wasabi-keys' / 'qs-vehiclekeys' / 'jaksam-keys')

Config.TrashName = 'policetrash' -- 垃圾名称

Config.StashName = 'policestash' -- 储藏名称

Config.EvidencesName = 'policeevidences' -- 证据名称

Config.EscortOnlyIfHandcuffed = false -- true = 仅在被手铐时护送 / false = 无论是否手铐均可护送

Config.WarpPedIntoVehicle = false -- true = 将角色传送到车辆内 / false = 车辆将在角色附近生成

Config.SetVehicleDoorsLockedOnSpawn = false -- true = 在生成时锁定车辆门 / false = 在生成时解锁车辆门

Config.RandomSocietyPlate = false -- true = 随机社会牌照 / false = 使用配置中定义的牌照

Config.UsePlayerGPSBlips = true -- true = 使用玩家 GPS 标记 / false = 不使用玩家 GPS 标记

Config.PlacePropKey = 38 -- 放置道具的快捷键 (E)

Config.RemovePropKey = 177 -- 移除道具的快捷键 (BACKSPACE)

Config.TackleKeys = { 21, 38 } -- 拦截玩家的快捷键 (SHIFT + E)

Config.PoliceJobs = { 'police', 'sheriff' } -- 警察职业列表

Config.MarkerID = 21 -- 职业地点的标记 ID

Config.VehicleMarker = 36 -- 车辆地点的标记 ID

Config.HelicopterMarker = 34 -- 直升机地点的标记 ID

Config.BoatMarker = 35 -- 船只地点的标记 ID

Config.MarkerColors = { r = 31, g = 94, b = 255, a = 90 } -- 职业地点的标记颜色

Config.StoreMarkerColors = { r = 255, g = 0, b = 0, a = 90 } -- 车辆地点的标记颜色

Config.RemoveOwnOfficerBlip = true -- true = 移除自己的官员标记 / false = 保留自己的官员标记

Config.UpdateJobBlipsInterval = 1 -- 更新官员标记的间隔(秒),较低的值可能会导致性能问题

Config.RemoveItemsOnJail = true -- true = 入狱时移除物品 / false = 入狱时保留物品

Config.CommunityServiceMaxDistance = 100 -- 如果玩家距离社区服务地点超过 100 米,玩家将被传送到该地点

Config.CommunityServiceAddedMonths = 5 -- 玩家尝试逃离社区服务地点时,额外增加的刑期(月份)

Config.HandsUpAnimation = { dict = 'missminuteman_1ig_2', anim = 'handsup_base' } -- 举手动画

Config.UseBuiltInCommunityService = true -- true = 使用内置社区服务

Config.UseBuiltInPrison = true -- true = 使用内置监狱

Config.PrisonSystem = 'rcore-prison' -- 如果将 Config.UseBuiltInPrison 设置为 false,则使用的监狱系统(仅限 'rcore-prison')

Config.UseBlips = true -- true = 使用标记 / false = 不使用标记

Config.AllowCuffToEveryone = false -- true = 允许对每个人拘捕 / false = 仅允许对警察职业拘捕

Config.RemovePrisonCommand = 'removeprison' -- 移除玩家出狱的命令

Config.RemoveCommunityServiceCommand = 'removecommunity' -- 移除玩家社区服务的命令
页: [1]
查看完整版本: 请翻译中文 保留原有代码