JonasDev17 / qb-garages

GNU General Public License v3.0
96 stars 70 forks source link

House Garage Heading Incorrect #118

Open real-general-iroh opened 1 year ago

real-general-iroh commented 1 year ago

Issue:

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.

JonasDev17 commented 1 year ago

they must have changed it