Skip to Content

🏢 qb-シティホール

導入

  • プレイヤーは自分の職業を管理し、武器免許証、運転免許証、身分証明書などの免許証を取得できる。

[!WARNING] このリソースは、リソースに定義されていないアイテムやジョブを自分に付与したり、市役所のポイントから適切な距離内にいないプレイヤーが利用しようとするとキックされます。

プレビュー

構成

市役所の所在地

Config.Cityhalls = { { coords = vec3(-265.0, -963.6, 31.2), showBlip = true, blipData = { sprite = 487, display = 4, scale = 0.65, colour = 0, title = "City Services" }, licenses = { -- what licenses are available at this location ["id_card"] = { label = "ID Card", cost = 50, }, ["driver_license"] = { label = "Driver License", cost = 50, metadata = "driver" }, ["weaponlicense"] = { label = "Weapon License", cost = 50, metadata = "weapon" }, } }, }

[!NOTE] ライセンスをさらに追加したい場合は、player-データ.mdtable >

運転教習所の場所

Config.DrivingSchools = { { -- Driving School 1 coords = vec3(240.3, -1379.89, 33.74), showBlip = true, blipData = { sprite = 225, display = 4, scale = 0.65, colour = 3, title = "Driving School" }, instructors = { -- instructors citizenid "DJD56142", "DXT09752", "SRI85140", } }, }

小児科

Config.Peds = { -- Cityhall Ped { model = 'a_m_m_hasjew_01', -- https://docs.fivem.net/docs/game-references/ped-models/ coords = vec4(-262.79, -964.18, 30.22, 181.71), scenario = 'WORLD_HUMAN_STAND_MOBILE', -- https://github.com/Santagain/gtav-scenarios cityhall = true, zoneOptions = { -- Used for when UseTarget is false length = 3.0, width = 3.0, debugPoly = false } }, -- Driving School Ped { model = 'a_m_m_eastsa_02', coords = vec4(240.91, -1379.2, 32.74, 138.96), scenario = 'WORLD_HUMAN_STAND_MOBILE', drivingschool = true, zoneOptions = { -- Used for when UseTarget is false length = 3.0, width = 3.0 } } }

利用可能なジョブの変更

  • server/main.lua にあります
local availableJobs = { ["trucker"] = "Trucker", ["taxi"] = "Taxi", ["tow"] = "Tow Truck", ["reporter"] = "News Reporter", ["garbage"] = "Garbage Collector", ["bus"] = "Bus Driver", }

コマンド

  • /drivinglicense - 設定に市民IDが登録されているプレイヤーは、このコマンドを使用して他のプレイヤーに運転免許証を割り当てることができます。
Last updated on