function GetSpawnLocationAndHeading(garage, garageType, parkingSpots, vehicle, spawnDistance)
local location
local heading
local closestDistance = -1
if garageType == "house" then
location = garage.takeVehicle
heading = garage.takeVehicle.h -- yes its 'h' not 'w'...
The comment stating "yes its 'h' not 'w'..." is incorrect. The heading for house garages in qb-houses is indeed garage.takeVehicle.w
After changing it from 'h' to 'w', the vehicle spawned with the correct heading.
Issue:
The comment stating "yes its 'h' not 'w'..." is incorrect. The heading for house garages in qb-houses is indeed
garage.takeVehicle.w
After changing it from 'h' to 'w', the vehicle spawned with the correct heading.