diff --git a/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua b/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua index c7088dd3a..9001d511b 100644 --- a/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua +++ b/resources/[jobs]/[civ]/mh_jobgarage/client/function.lua @@ -35,10 +35,11 @@ function IsVehicleSpawned(plate) for _, vehicle in ipairs(vehicles) do if DoesEntityExist(vehicle) then - local vehiclePlate = QBCore.Functions.GetPlate(vehicle) local mods = QBCore.Functions.GetVehicleProperties(vehicle) + local vehiclePlate = mods.plate if vehiclePlate == plate then + print("Function: "..mods) return true, mods end end