Describe the bug
When setting inventory:dropslots to 1 and inventory:dropweight to 0, the right-hand side of the inventory (the drop area) still shows the same number of slots as the player's inventory. Additionally, even though the drop weight is set to 0, it's still possible to drop items there. This doesn't make sense, as the configuration implies that the drop should not be usable.
Framework
ESX 1.12.4
Resource version
ox_inventory 2.24.3
To Reproduce
Steps to reproduce the behavior:
- Add the following lines to server.cfg:
setr inventory:dropslots 1
setr inventory:dropweight 0
- Start the server and open the inventory.
- Try to drop an item on the right-hand side (drop area).
Expected behavior
The drop area should:
Only show 1 slot.
Reject all items, as the max weight is set to 0.
Screenshots
VIDEO: https://streamable.com/m56btj
Additional context
This setup is intended to disable or heavily restrict the drop system, but in practice, the drop area still behaves as if it were unrestricted. It shows incorrect slot counts and allows interaction despite the 0 weight limit. This can lead to confusion or undesired behavior on servers aiming to disable ground item drops.
Describe the bug
When setting inventory:dropslots to 1 and inventory:dropweight to 0, the right-hand side of the inventory (the drop area) still shows the same number of slots as the player's inventory. Additionally, even though the drop weight is set to 0, it's still possible to drop items there. This doesn't make sense, as the configuration implies that the drop should not be usable.
Framework
ESX 1.12.4
Resource version
ox_inventory 2.24.3
To Reproduce
Steps to reproduce the behavior:
setr inventory:dropslots 1
setr inventory:dropweight 0
Expected behavior
The drop area should:
Only show 1 slot.
Reject all items, as the max weight is set to 0.
Screenshots
VIDEO: https://streamable.com/m56btj
Additional context
This setup is intended to disable or heavily restrict the drop system, but in practice, the drop area still behaves as if it were unrestricted. It shows incorrect slot counts and allows interaction despite the 0 weight limit. This can lead to confusion or undesired behavior on servers aiming to disable ground item drops.