qb-garages icon indicating copy to clipboard operation
qb-garages copied to clipboard

House Garage Heading Incorrect

Open realgeneraliroh opened this issue 2 years ago • 1 comments
trafficstars

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.

realgeneraliroh avatar Jun 14 '23 04:06 realgeneraliroh

they must have changed it

JonasDev17 avatar Jun 23 '23 09:06 JonasDev17