Project-Sloth / ps-housing

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

Fix for #199 | Proper Furniture Unloading #200

Closed ogidevs closed 7 months ago

ogidevs commented 7 months ago

Overview

Provide a brief overview of the purpose of this pull request Fixes furniture unloading when leaving property.

Details

So, as I understood, once table.remove is used and entry is actually removed, leftovers in table shifts, thus changing the indexes. As a result, we do not iterate through all the furniture.

UI Changes / Functionality

/

Testing Steps

Enter other player's property with placed furniture. Leave the property and enter yours.

ogidevs commented 7 months ago

199