From 32c40aca0e2afff3a854dbc94277a0a42cb2f8cb Mon Sep 17 00:00:00 2001 From: Michael Biddle <556637+mbiddle@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:57:40 -0800 Subject: [PATCH] Fixed Issue #366 where garage needed to be ensured again in order to deposit vehicles into houses. The variable house wasn't defined previously. --- client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index 97e4c73..273bed1 100644 --- a/client/main.lua +++ b/client/main.lua @@ -409,11 +409,11 @@ RegisterNetEvent('qb-garages:client:setHouseGarage', function(house, hasKey) -- end) RegisterNetEvent('qb-garages:client:houseGarageConfig', function(houseGarages) - for _, garageConfig in pairs(houseGarages) do + for houseName, garageConfig in pairs(houseGarages) do local formattedHouseName = string.gsub(string.lower(garageConfig.label), ' ', '') if garageConfig.takeVehicle and garageConfig.takeVehicle.x and garageConfig.takeVehicle.y and garageConfig.takeVehicle.z and garageConfig.takeVehicle.w then Config.Garages[formattedHouseName] = { - houseName = house, + houseName = houseName, takeVehicle = vector3(garageConfig.takeVehicle.x, garageConfig.takeVehicle.y, garageConfig.takeVehicle.z), spawnPoint = { vector4(garageConfig.takeVehicle.x, garageConfig.takeVehicle.y, garageConfig.takeVehicle.z, garageConfig.takeVehicle.w)