Project-Sloth / ps-housing

Advanced housing system for QBCore.
https://discord.gg/projectsloth
Other
343 stars 110 forks source link

FIX: Grab newPos and newRot before object delete #179

Closed 1B0Y closed 9 months ago

1B0Y commented 10 months ago

Overview

Fix for issue #168 - Furniture position bug

Details

Players unable to change furniture position after purchase, otherwise results in position of object returning 0,0,0 This is caused by the object being deleted before obtaining the new coordinates and rotation. These are now captured before object delete in client/modeler.lua

UI Changes / Functionality

None

Testing Steps

Followed the steps listed in #168, and confirmed the issue is no longer present.