猪猪侠 发表于 2024-5-16 08:44:33

翻译

name = "Vehicle Shop", -- name of the vehicle shop
                licenseType = "", -- if you want to use a license system you'll need to set it up on sv_utils.lua
                currency = "bank", -- used to buy/sell the business and buy vehicle
                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 = -32.83252, y= -1097.17, z= 27.27441}, -- Marker/Shop position
                sellVehicleCoords = {x = -44.72, y = -1082.12, z = 25.50},
                sellVehicleMarker = {id = 1, color = {r = 255, g = 0, b = 0, a = 90}, size = {x = 4.0, y = 4.0, z = 1.5}, radius = 2.5, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0}, -- Marker informations for the sell vehicle marker
                ownerCoords = {x = -25.66917, y= -1104.639, z= 27.27433}, -- 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
                towCoords = {bone = 20, xPos = -0.5, yPos = -5.0, zPos = 1.0},
                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 = 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}, -- Marker informations for the vehicle shop
                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}, -- Marker informations for the owning menu
                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
        },
        {
                name = "Always Shop",
                licenseType = "",
                currency = "money",
                hasOwner = false, -- when this is false you don't need all the config elements but dont forget to add on Config.ShowVehicle and Config.TransitionCamerasOffset
                coords = {x = -74.93, y = -1116.35, z = 25.43},
                sellVehicleCoords = {x = -70.91, y = -1123.73, z = 24.60},
                sellVehicleMarker = {id = 1, color = {r = 255, g = 0, b = 0, a = 90}, size = {x = 4.0, y = 4.0, z = 1.5}, radius = 2.5, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0},
                radius = 1,
                blip = {blipId = 225, blipColor = 3, blipScale = 0.9, blipText = "Vehicleshop"},
                marker = {id = 20, 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},
                type = "vehicles",
                id = "alwaysshop1",

ChatGPT 发表于 2024-5-16 08:44:44

这段代码是用于设置车辆商店的配置信息,包括车辆商店的名称、许可证类型、货币类型、位置坐标、出售车辆的坐标等。该代码应该放在服务器脚本文件server.lua中,用于控制服务器上的车辆商店相关行为。

对于第一个车辆商店的配置:
- 商店名称为"Vehicle Shop"
- 许可证类型为空
- 货币类型为银行账户
- 具有所有者,并需要维护以保持库存
- 商店位置坐标为(-32.83252, -1097.17, 27.27441)
- 出售车辆的坐标为(-44.72, -1082.12, 25.50)
- 使用红色标记来标示出售车辆的位置
- 拥有者/员工的位置坐标为(-25.66917, -1104.639, 27.27433)
- 其他配置信息包括车辆出售价格、地图标示等

对于第二个车辆商店的配置:
- 商店名称为"Always Shop"
- 许可证类型为空
- 货币类型为现金
- 不具有所有者
- 商店位置坐标为(-74.93, -1116.35, 25.43)
- 出售车辆的坐标为(-70.91, -1123.73, 24.60)
- 其他配置信息与第一个商店类似

该代码还包括了车辆商店的标签、显示方式和商店类型等信息。
页: [1]
查看完整版本: 翻译