翻译
Config = {}
Config.EventPrefix = "okokVehicleshop" -- this will change the prefix of the events name so if Config.EventPrefix = "example" the events will be "example:event"
Config.QBCorePrefix = "QBCore"
Config.qbPrefix = "qb"
Config.UseOkokTextUI = true -- true = okokTextUI (I recommend you using this since it is way more optimized than the default ShowHelpNotification) | false = ShowHelpNotification
Config.Key = 38 -- Key to open the interaction, check here the keys ID: https://docs.fivem.net/docs/game-references/controls/#controls
Config.UseokokRequests = true -- true = use okokRequests for hiring people | false = don't use okokRequests - https://okok.tebex.io/package/4724985
Config.UseSameImageForVehicles = true -- true = use the same image for all vehicles (vehicle.png) | false = use different images for each vehicle (vehicle_id.png)
Config.HideMinimap = true -- If true it'll hide the minimap when the vehicle shop menu is opened
Config.TimeBetweenTransition = 7000 -- how much time it stays in a camera before changing, in miliseconds
Config.TransitionTime = 4000 -- how much time it takes to go from one camera to another (camera movement), in miliseconds
Config.ShakeAmplitude = 0.2 -- camera shake
Config.UseKMh = true -- true = use KM/h | false = use miles/h
Config.MaxVehiclesSpeed = 450 -- Max speed a vehicle can go at (it is only used for UI purposes, it does NOT change the speed of a vehicle)
Config.TestDriveTime = 40 -- In seconds
Config.StopTestDriveCmd = "cancel" -- command to stop the test drive
Config.PlateLetters= 3 -- How many letters the plate has
Config.PlateNumbers= 3 -- How many numbers the plate has
Config.PlateUseSpace = true -- If the plate uses spaces between letters and numbers
Config.OrderCompletedPercentage = 10 -- When a employee completes the misson he will get this percentage as a reward, 10 = 10%
Config.HireRange = 3 -- How close a player needs to be to be in the hiring range
Config.AdminCommand = "vsadmin" -- command to open the admin menu
Config.OwnerBuyVehiclePercentage = 10 -- How much of a discount the owner has to order a vehicle (bases on the min. price)
Config.SellBusinessReceivePercentage = 50 -- How much a player will receive for selling his business (in percentage, 50 = 50%)
Config.ClearMoneyWhenBusinessIsSold = false -- true = remove the money from the society when sold | false = do not remove the money
Config.MaxDealershipsPerPlayer = 1 -- How many vehicle shops a player can own
Config.MaxEmployeesPerDealership = 10 -- How many employees a vehicle shop can hire
Config.AdminGroups = { -- Admin groups that can access the admin menu
"god",
"admin"
}
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
"Newbie", -- ID: 1
"Experienced",-- ID: 2
"Expert", -- ID: 3
"Sub-Owner" -- ID: 4
}
Config.SubOwnerRank = 4 -- ID of the rank that will work as a secondary owner
Config.TruckBlip = {blipId = 67, blipColor = 2, blipScale = 0.9, blipText = "Truck"} -- Blip of the truck when someone accepts an order
Config.TrailerBlip = {blipId = 515, blipColor = 2, blipScale = 0.9, blipText = "Trailer"} -- Blip of the trailer when someone accepts an order (for vehicle shops with big vehicles)
Config.OrderBlip = {blipId = 478, blipColor = 5, blipText = "Order"}-- Blip of the ordered vehicle when someone accepts an order
Config.TowMarker = {id = 21, size = {x = 0.5, y = 0.5, z = 0.5}, color = {r = 94, g = 255, b = 155}} -- The marker to tow a vehicle when someone accepts an order
Config.Stands = { -- Vehicle shops informations
{
name = "Vehicle Shop", -- name of the vehicle shop
hasOwner = true, -- true = this vehicle shop can have a owner and will need maintenance to have stock | false = no owner and with vehicles all the time, price = max_price set on the database
coords = {x = -57.50, y = -1096.73, z = 26.42}, -- Marker/Shop position
ownerCoords = {x = -31.66, y = -1114.00, z = 26.42}, -- Marker/Shop position for owner/employees
spawnFlatbedPos = {x = -16.95, y = -1105.34, z = 26.67, h = 160.0}, -- Where the flatbed/truck is spawned for the orders
missionsVehicleSpawn = { -- Locations where someone who accepted an order will have to go (it is random)
{x = -465.99, y = -618.22, z = 31.17, h = 100.0},
--{x = 218.46, y = -850.71, z = 30.16, h = 100.0},
},
radius = 1, -- Interaction radius for the markers
price = 10000, -- Price of the vehicle shop
blip = {blipId = 225, blipColor = 3, blipScale = 0.9, blipText = "Vehicleshop"}, -- Blip informations for vehicleshop blip
ownerBlip = {blipId = 225, blipColor = 2, blipScale = 0.9, blipText = "Vehicleshop Panel"}, -- Blip informations for shops you own/work for
buyBlip = {blipId = 225, blipColor = 1, blipScale = 0.9, blipText = "Vehicleshop to buy"}, -- Blip informations for shop on sale
marker = {id = 20, color = {r = 94, g = 255, b = 155}, size = {x = 0.5, y = 0.5, z = 0.5}}, -- Marker informations for the vehicle shop
ownerMarker = {id = 21, color = {r = 94, g = 255, b = 155}, size = {x = 0.5, y = 0.5, z = 0.5}}, -- Marker informations for the owning menu
towHeight = 1.0, -- How high the vehicle is in the tow truck when gotten from an order
bigVehicles = false, -- Set to true if it's airplanes/helicopters/etc... it'll use a truck instead of a flatbed to get the ordered vehicles
type = "vehicles", -- Type of shop (will change displayed vehicles) | CAN be repeated on other shops
id = "vehicles1", -- ID of the shop, it's used to get what shop is opened | needs to be DIFFERENT for each shop
Config = {}
Config.EventPrefix = "okokVehicleshop" -- 这将更改事件名称的前缀,所以如果Config.EventPrefix = "example",则事件将是"example:event"
Config.QBCorePrefix = "QBCore"
Config.qbPrefix = "qb"
Config.UseOkokTextUI = true -- true = okokTextUI(我建议您使用这个,因为它比默认的ShowHelpNotification更优化)| false = ShowHelpNotification
Config.Key = 38 -- 打开交互的按键,请在此处检查按键ID:https://docs.fivem.net/docs/game-references/controls/#controls
Config.UseokokRequests = true -- true = 使用okokRequests来招聘人员 | false = 不使用okokRequests - https://okok.tebex.io/package/4724985
Config.UseSameImageForVehicles = true -- true = 所有车辆使用相同的图像(vehicle.png)| false = 每辆车使用不同的图像(vehicle_id.png)
Config.HideMinimap = true -- 如果为true,则在打开车辆商店菜单时隐藏小地图
Config.TimeBetweenTransition = 7000 -- 在切换摄像头之前停留的时间,以毫秒为单位
Config.TransitionTime = 4000 -- 从一个摄像头切换到另一个摄像头所需的时间(摄像头移动),单位为毫秒
Config.ShakeAmplitude = 0.2 -- 摄像头抖动幅度
Config.UseKMh = true -- true = 使用KM/h | false = 使用英里/小时
Config.MaxVehiclesSpeed = 450 -- 车辆可以达到的最高速度(仅用于UI目的,不会改变车辆的速度)
Config.TestDriveTime = 40 -- 单位为秒
Config.StopTestDriveCmd = "cancel" -- 停止试驾的命令
Config.PlateLetters= 3 -- 车牌上的字母数
Config.PlateNumbers= 3 -- 车牌上的数字数
Config.PlateUseSpace = true -- 车牌是否在字母和数字之间使用空格
Config.OrderCompletedPercentage = 10 -- 员工完成任务后会得到的奖励百分比,10 = 10%
Config.HireRange = 3 -- 玩家需要接近多近才能被雇佣
Config.AdminCommand = "vsadmin" -- 打开管理菜单的命令
Config.OwnerBuyVehiclePercentage = 10 -- 所有者订购车辆的折扣百分比(基于最低价格)
Config.SellBusinessReceivePercentage = 50 -- 出售生意时玩家将获得的金额百分比(以百分比表示,50 = 50%)
Config.ClearMoneyWhenBusinessIsSold = false -- true = 出售时从公司中移除资金 | false = 出售时不移除资金
Config.MaxDealershipsPerPlayer = 1 -- 一个玩家最多可以拥有多少辆车
Config.MaxEmployeesPerDealership = 10 -- 一个车行最多可以雇佣多少名员工
Config.AdminGroups = { -- 可以访问管理菜单的管理员组
"god",
"admin"
}
Config.JobRanks = { -- 这些是车辆商店可用的等级,您可以添加或删除任意数量的等级,但至少留下1个
"新手", -- ID: 1
"有经验的",-- ID: 2
"专家", -- ID: 3
"副业主" -- ID: 4
}
Config.SubOwnerRank = 4 -- 将作为第二所有者工作的等级的ID
Config.TruckBlip = {blipId = 67, blipColor = 2, blipScale = 0.9, blipText = "卡车"} -- 当有人接受订单时的卡车提示
Config.TrailerBlip = {blipId = 515, blipColor = 2, blipScale = 0.9, blipText = "拖车"} -- 当有人接受订单时的拖车提示(适用于拥有大型车辆的车行)
Config.OrderBlip = {blipId = 478, blipColor = 5, blipText = "订单"}-- 当有人接受订单时的车辆提示
Config.TowMarker = {id = 21, size = {x = 0.5, y = 0.5, z = 0.5}, color = {r = 94, g = 255, b = 155}} -- 当有人接受订单时拖车的标记
Config.Stands = { -- 车辆商店信息
{
name = "车辆商店", -- 车辆商店的名称
hasOwner = true, -- true = 这个车辆商店可以有一个所有者,并且需要维护才能保持库存| false = 没有所有者,车辆始终都在那里,价格=数据库上设置的最高价格
coords = {x = -57.50, y = -1096.73, z = 26.42}, -- 标记/商店位置
ownerCoords = {x = -31.66, y = -1114.00, z = 26.42}, -- 所有者/员工的标记/商店位置
spawnFlatbedPos = {x = -16.95, y = -1105.34, z = 26.67, h = 160.0}, -- 接受订单时平板卡车的生成位置
missionsVehicleSpawn = { -- 接受订单后要前往的位置(随机)
{x = -465.99, y = -618.22, z = 31.17, h = 100.0},
--{x = 218.46, y = -850.71, z = 30.16, h = 100.0},
},
radius = 1, -- 标记的交互半径
price = 10000, -- 车辆商店的价格
blip = {blipId = 225, blipColor = 3, blipScale = 0.9, blipText = "Vehicleshop"}, -- 车辆商店的标记信息
ownerBlip = {blipId = 225, blipColor = 2, blipScale = 0.9, blipText = "Vehicleshop Panel"}, -- 您所拥有/工作的商店的标记信息
buyBlip = {blipId = 225, blipColor = 1, blipScale = 0.9, blipText = "Vehicleshop to buy"}, -- 待出售商店的标记信息
marker = {id = 20, color = {r = 94, g = 255, b = 155}, size = {x = 0.5, y = 0.5, z = 0.5}}, -- 车辆商店的标记信息
ownerMarker = {id = 21, color = {r = 94, g = 255, b = 155}, size = {x = 0.5, y = 0.5, z = 0.5}}, -- 拥有菜单的标记信息
towHeight = 1.0, -- 从订单中得到时车辆在拖车上的高度
bigVehicles = false, -- 如果是飞机/直升机等,则设置为true,它将使用卡车而不是平板卡车获取已订购的车辆
type = "vehicles", -- 商店的类型(将显示的车辆)| 可以在其他商店上重复
id = "vehicles1", -- 商店的ID,用于确定打开了哪个商店| 每个商店的ID需要不同
}
}
```
这段代码应该放在服务器的脚本文件server.lua中。
页:
[1]