From 0ccb1025e45863e5d3f068058f84209b2da97ca7 Mon Sep 17 00:00:00 2001 From: Miho931 <98314142+Miho931@users.noreply.github.com> Date: Mon, 9 Jun 2025 14:14:43 +0200 Subject: [PATCH] Update main.lua --- .../[carscripts]/mh_garage/client/main.lua | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/resources/[carscripts]/mh_garage/client/main.lua b/resources/[carscripts]/mh_garage/client/main.lua index 4240ce48c..909262370 100644 --- a/resources/[carscripts]/mh_garage/client/main.lua +++ b/resources/[carscripts]/mh_garage/client/main.lua @@ -94,16 +94,18 @@ function AddTargetOptions(zone) icon = "fas fa-car", label = "Fahrzeug ausparken", args = zone - }, - if Config.Verwaltung.garage then - { - type = "client", - event = "mh_garage:verwaltungVeh", - icon = "", - label = "Fahrzeuge Verwalten", - } - end + } } + + if Config.Verwaltung.garage then + table.insert(opt, { + type = "client", + event = "mh_garage:verwaltungVeh", + icon = "", + label = "Fahrzeuge Verwalten", + }) + end + exports['qb-target']:AddTargetEntity(npcHandle, { options = opt, distance = 2.5