Skip to Content

🚗 qb-vehicleshop

導入

  • vehicleショップのロジックを処理します
  • 用途qb-メニュー.md そして qb-input.mdオプションとのやり取りを処理するqb-target.md 統合
  • カスタムカーを追加するには、qb-coreのvehicles.luaに追加します。共有.mdtable

試乗:

  • 設定可能な時間
  • 時間切れになるとplayerを返します
  • vehicleを1つ以上倒すことはできません

資金調達:

  • 頭金の設定
  • 設定可能な最大支払額
  • 個人ディーラー向けの設定可能な手数料額
  • player の参加時に支払期限を確認し、player のログアウトまたは終了時に時間を更新します。

ショップ:

  • 特定のジョブにロックする
  • 個人ディーラーの営業担当者に支払われる手数料
  • 簡単なポリゾーン作成で好きなだけ作成できます
  • 車両販売額は個人ディーラーのカードディーラー協会基金に入金されます

プレビュー

Sales floor

Menu for purchasing a car

構成

一般的な

Config.Commission = 0.10 -- Percent that goes to sales person from a full car sale 10% Config.FinanceCommission = 0.05 -- Percent that goes to sales person from a finance sale 5% Config.FinanceZone = vector3(-29.53, -1103.67, 26.42) -- Where the finance menu is located Config.PaymentWarning = 10 -- time in minutes that player has to make payment before repo Config.PaymentInterval = 24 -- time in hours between payment being due Config.MinimumDown = 10 -- minimum percentage allowed down Config.MaximumPayments = 24 -- maximum payments allowed

店舗の開設

[!NOTE] 無料ショップはどのプレイヤーでもアクセスできますが、管理ショップは設定されたジョブを持つプレイヤーのみがアクセスできます。

Config.Shops = { ['pdm'] = { ['Type'] = 'free-use', -- free-use/managed ['Zone'] = { ['Shape'] = { -- polyzone that surrounds the shop vector2(-56.727394104004, -1086.2325439453), vector2(-60.612808227539, -1096.7795410156), vector2(-58.26834487915, -1100.572265625), vector2(-35.927803039551, -1109.0034179688), vector2(-34.427627563477, -1108.5111083984), vector2(-32.02657699585, -1101.5877685547), vector2(-33.342102050781, -1101.0377197266), vector2(-31.292987823486, -1095.3717041016) }, ['minZ'] = 25.0, -- min height of the shop zone ['maxZ'] = 28.0, -- max height of the shop zone ['size'] = 2.75, -- size of the vehicles zones }, ['Job'] = 'none', -- name of job or none ['ShopLabel'] = 'Premium Deluxe Motorsport', -- map blip name ['Location'] = vector3(-45.67, -1098.34, 26.42), -- map blip Location ['showBlip'] = true, -- enable/disable map blip ['blipSprite'] = 326, -- blip sprite ['blipColor'] = 3, -- blip color ['Categories'] = { -- categories available to browse ['sportsclassics'] = 'Sports Classics', ['sedans'] = 'Sedans', ['coupes'] = 'Coupes', ['suvs'] = 'SUVs', ['offroad'] = 'Offroad', ['muscle'] = 'Muscle', ['compacts'] = 'Compacts', ['motorcycles'] = 'Motorcycles', ['vans'] = 'Vans', ['cycles'] = 'Bicycles' }, ['TestDriveTimeLimit'] = 0.5, -- test drive time in minutes -- test drive return location ['ReturnLocation'] = vector3(-44.74, -1082.58, 26.68), -- spawn location of bought vehicle ['VehicleSpawn'] = vector4(-56.79, -1109.85, 26.43, 71.5), ['ShowroomVehicles'] = { [1] = { -- vehicle display location coords = vector4(-45.65, -1093.66, 25.44, 69.5), defaultVehicle = 'adder', -- Default display vehicle chosenVehicle = 'adder', -- dynamically changes, don't edit }, [2] = { coords = vector4(-48.27, -1101.86, 25.44, 294.5), defaultVehicle = 'schafter2', chosenVehicle = 'schafter2', }, [3] = { coords = vector4(-39.6, -1096.01, 25.44, 66.5), defaultVehicle = 'comet2', chosenVehicle = 'comet2', }, [4] = { coords = vector4(-51.21, -1096.77, 25.44, 254.5), defaultVehicle = 'vigero', chosenVehicle = 'vigero', }, [5] = { coords = vector4(-40.18, -1104.13, 25.44, 338.5), defaultVehicle = 't20', chosenVehicle = 't20', }, [6] = { coords = vector4(-43.31, -1099.02, 25.44, 52.5), defaultVehicle = 'bati', chosenVehicle = 'bati', }, [7] = { coords = vector4(-50.66, -1093.05, 25.44, 222.5), defaultVehicle = 'bati', chosenVehicle = 'bati', }, [8] = { coords = vector4(-44.28, -1102.47, 25.44, 298.5), defaultVehicle = 'bati', chosenVehicle = 'bati', } }, }, }

コマンド

/transferVehicle - vehicle を贈ったり売ったりする

Last updated on