qbcore-framework / qb-apartments

Apartment Script Used With QB-Core :house:
GNU General Public License v3.0
25 stars 197 forks source link

[BUG] On Logout #85

Closed CxCore-xyz closed 1 year ago

CxCore-xyz commented 2 years ago

If you logout in the appartments with the logout off character or just exit in appartments interior when you relog back in you get teleported back to the appartment but the problem is you don't get no more like leave the apartments or stash or anything you're just stuck in the appartments

Kilberz commented 2 years ago

You can resolve this by adding

if not ClosestHouse then ClosestHouse = house end

Around line 337 of Client / Main. I've not tested to see if it causes any other issues but it does resolve the problem.

jonihindryckx commented 1 year ago

doesnt seem to fix this issue because im having the same problem

CaptainP1ng commented 1 year ago

have the same problem

ImMacky commented 1 year ago

I followed your instructions on how to reproduce the bug and encountered no issues on the latest release. I attempted to use the /logout command and the Logout Character Prompt at the Desk, and I was able to leave the apartments and interact with everything as expected.