From de57457b8f3df41c38a187e49a8aa2c872572e26 Mon Sep 17 00:00:00 2001 From: Miho Date: Tue, 24 Jun 2025 23:37:54 +0200 Subject: [PATCH] resources/[jobs]/[civ]/mh_jobgarage/client/function.lua aktualisiert --- .../[civ]/mh_jobgarage/client/function.lua | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua b/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua index 9001d511b..2f4d3fe38 100644 --- a/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua +++ b/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua @@ -27,23 +27,4 @@ end RegisterNetEvent('mh_jobgarage:notify') AddEventHandler('mh_jobgarage:notify', function(title, text, type) Notification(title, text, type) -end) - -function IsVehicleSpawned(plate) - - local vehicles = GetGamePool('CVehicle') - - for _, vehicle in ipairs(vehicles) do - if DoesEntityExist(vehicle) then - local mods = QBCore.Functions.GetVehicleProperties(vehicle) - local vehiclePlate = mods.plate - - if vehiclePlate == plate then - print("Function: "..mods) - return true, mods - end - end - end - - return false, nil -- Vehicle not found -end \ No newline at end of file +end) \ No newline at end of file