Skip to content

Commit

Permalink
Fixed Issue #366 where garage needed to be ensured again in order to …
Browse files Browse the repository at this point in the history
…deposit vehicles into houses. The variable house wasn't defined previously.
  • Loading branch information
mbiddle committed Nov 27, 2024
1 parent cbf20f5 commit 32c40ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32c40ac

Please sign in to comment.