qbcore-framework / qb-apartments

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

[BUG] cant get outof the apartment #116

Closed Snili866 closed 1 year ago

Snili866 commented 1 year ago

when i spawn in my apartment and walk too the door the menu too get out wont show up,but when i was walkin around too see if the go out menu would appear somewhere else i found it behind the sofa....how can i fix this??

Schweinejaeger commented 1 year ago

Bei mir hat es geholfen, die letzer Änderung in client main.lua in Zeile 197 rückgängig zu machen. Hier wurde warum auch immer + anstatt - Zeichen verwendet, danach ging es wieder bei mir. Korrekte Zeile: local entrancePos = vector3(Apartments.Locations[ClosestHouse].coords.enter.x - POIOffsets.exit.x, Apartments.Locations[ClosestHouse].coords.enter.y - POIOffsets.exit.y - 0.5, Apartments.Locations[ClosestHouse].coords.enter.z - CurrentOffset + POIOffsets.exit.z)

kushuser commented 1 year ago

changed client main.lua line 197 from + x and + y offsets to MINUS - x and - y offsets. fixed this for me.

local entrancePos = vector3(Apartments.Locations[ClosestHouse].coords.enter.x - POIOffsets.exit.x, Apartments.Locations[ClosestHouse].coords.enter.y - POIOffsets.exit.y - 0.5, Apartments.Locations[ClosestHouse].coords.enter.z - CurrentOffset + POIOffsets.exit.z)

github-actions[bot] commented 1 year ago

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