Project-Sloth / ps-housing

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

ps-housing Garage #195

Closed Z0Dey closed 2 months ago

Z0Dey commented 6 months ago

Describe the bug When I insert a garage and try to change its position, it doesn't change the garage's position and remains at the initial location where I first inserted it using the ps-housing script. Furthermore, when I change the position of the garage, the old blips from the initial position where I set the location remain and do not disappear unless I restart the server. Also, when I try to delete a garage, it doesn't work and displays an error

Steps to reproduce the behavior:

Go to the tablet. Insert the garage/door using the tablet. Attempt to change the position of the garage. Notice that the position of the garage does not change. Try changing the position of the garage. Observe that the old blips from the initial position remain and do not disappear unless the server is restarted. Attempt to delete a garage. Notice that deletion does not work and an error message is displayed.

Expected behavior: When inserting a garage and attempting to change its position, I expect the garage's position to update accordingly. Additionally, when changing the position of the garage, I expect the old blips from the previous position to be removed automatically. Furthermore, I expect to be able to delete a garage without encountering any errors.

Screenshots If applicable, add screenshots to help explain your problem. error1 error2 image

Additional context: The issue seems to be related to the functionality of the ps-housing script, where changes made to the garage positions or deletions are not being reflected as expected.