qbcore-framework / qb-garages

Garage System Used With QB-Core :car:
GNU General Public License v3.0
48 stars 260 forks source link

[BUG] Issue when storing a air plane in the airport garage #267

Closed ShortWlf closed 1 year ago

ShortWlf commented 1 year ago

Issue when storing a air plane in the airport garage

I go and take out the air plane from the red marker, it spawns me inside the airplane the menu activation never go's away, saying press letter e, if you press letter e the complete script stops working.

console error ' SCRIPT ERROR: @qb-garages/client/main.lua:542: attempt to index a nil value (upvalue 'currentGarage') '

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Airport Garage'
  2. Store a Air Plane
  3. Take Air Plane back out from garage storage
  4. See error ' it will still have the ability to press e to open menu, causes f8 console error, garage stops working.

have not been able to resolve issue.

ShortWlf commented 1 year ago

found a fix to make the menu go away so issue dont consist, just make the spawn xyz the same as the put xyz, example.

config.lua

    ["intairport"] = {
        label = "Airport Hangar",
        takeVehicle = vector3(-1025.92, -3017.86, 13.95),
        spawnPoint = vector4(-1003.38, -3008.87, 13.95, 61.831344), -- same xyz = menu closes
        putVehicle = vector3(-1003.38, -3008.87, 13.95), -- same xyz = menu closes
        showBlip = true,
        blipName = "Hangar",
        blipNumber = 360,
        type = 'public',                --public, job, gang, depot
        vehicle = 'air'                 --car, air, sea
    },
github-actions[bot] commented 1 year ago

This issue has had 60 days of inactivity & will close within 7 days