Skip to Content
ドキュメントQb DocQbcore Resources🧑🔧 🧑🔧 🧑🔧 🧑🔧 qb-mechanicjob

🧑🔧 🧑🔧 🧑🔧 🧑🔧 qb-mechanicjob

導入

  • メカニック職のプレイヤーは、車両を「プレート」に取り付けたり、ボディやエンジンを修理したりできます。また、保管庫、仕事用車両、出勤・退勤場所も含まれます。

プレビュー

Displays vehicle heath

Menu for mechanics to work on cars

Displays vehicle health in chat

構成

一般的な

Config = {} Config.AttachedVehicle = nil -- changes dynamically, don't edit Config.AuthorizedIds = { -- players authorized to use hire/fire commands "insertcitizenidhere", } Config.Vehicles = { -- list of job vehicles that can be withdrawn ["flatbed"] = "Flatbed", ["towtruck"] = "Towtruck", ["minivan"] = "Minivan (Rental Car)", ["blista"] = "Blista", }

場所

Config.Locations = { ["exit"] = vector3(-339.04, -135.53, 39), -- location for map blip ["duty"] = vector3(-323.39, -129.6, 39.01), -- interaction location ["stash"] = vector3(-319.49, -131.9, 38.98), -- interaction location ["vehicle"] = vector4(-370.51, -107.88, 38.35, 72.56), -- interaction location } Config.Plates = { -- repair locations that "locks" vehicle in place [1] = { -- polyzone box data coords = vector4(-340.95, -128.24, 39, 160.0), boxData = { heading = 340, length = 5, width = 2.5, debugPoly = false }, AttachedVehicle = nil, -- changes dynamically, don't edit }, [2] = { coords = vector4(-326.78, -144.82, 39.06, 70), boxData = { heading = 249, length = 6.5, width = 5, debugPoly = false }, AttachedVehicle = nil, }, }

車両部品

Config.MaxStatusValues = { -- the maximum health of the given part ["engine"] = 1000.0, ["body"] = 1000.0, ["radiator"] = 100, ["axle"] = 100, ["brakes"] = 100, ["clutch"] = 100, ["fuel"] = 100, } Config.ValuesLabels = { -- the label of the given part in the repair menu ["engine"] = "Motor", ["body"] = "Body", ["radiator"] = "Radiator", ["axle"] = "Drive Shaft", ["brakes"] = "Brakes", ["clutch"] = "Clutch", ["fuel"] = "Fuel Tank", } Config.RepairCost = { -- the item that is needed to repair the given part ["body"] = "plastic", ["radiator"] = "plastic", ["axle"] = "steel", ["brakes"] = "iron", ["clutch"] = "aluminum", ["fuel"] = "plastic", } Config.RepairCostAmount = { -- the item and amount that is need to repair a part ["engine"] = { item = "metalscrap", costs = 2, }, ["body"] = { item = "plastic", costs = 3, }, ["radiator"] = { item = "steel", costs = 5, }, ["axle"] = { item = "aluminum", costs = 7, }, ["brakes"] = { item = "copper", costs = 5, }, ["clutch"] = { item = "copper", costs = 6, }, ["fuel"] = { item = "plastic", costs = 5, }, }

車両部品の損傷

Config.Damages = { -- These are the menu labels for the respective part ["radiator"] = "Radiator", ["axle"] = "Drive Shaft", ["brakes"] = "Brakes", ["clutch"] = "Clutch", ["fuel"] = "Fuel Tank", } Config.MinimalMetersForDamage = { -- vehicle driving distance range [1] = { min = 8000, -- minimum range for damage to occur max = 12000, -- maximum range for damage to occur multiplier = { min = 1, -- minimum damage multiplier max = 8, -- maximum damage multiplier } }, [2] = { min = 12000, max = 16000, multiplier = { min = 8, max = 16, } }, [3] = { min = 12000, max = 16000, multiplier = { min = 16, max = 24, } }, }

コマンド

[!WARNING] これらのコマンドは、設定で見つかった市民IDを持つプレイヤーのみが使用できます。

  • /setmechanic - playerをメカニックとして雇う
  • /firemechanic - player をメカニックとして削除する
  • /setvehiclestatus - vehicleパーツのダメージレベルを変更します
Last updated on