Search the Community
Showing results for tags 'advanced'.
-
I have been working on a silly gimmick mod for a while now that is supposed to force all players to share the same inventory and it actually worked first try easily with no issues server side. The only problem was that the items would not show up in the player's inventory. After months of going nuts trying to figure out why this is, I came to a few interesting discoveries. Through some messing around with pushevents I found out that "refreshinventory" and the likes are not working and "itemget" works exactly as I want it to except that it only works if the item is nearby on the ground. After some more recent messing around I found out that forcing SetCanSleep to false made it work at any range, but still only on the ground. I have come to the conclusion that the issue I am having comes from the item not being loaded on the client when it's in another player's inventory even with SetCanSleep set to false. I have a feeling that if I can get around that, I can get everything to work. TLDR: I want everyone to share the same inventory and I need help finding a way to get around items unloading when put in other player's inventories. And if it somehow helps I have the modmain that I have been working with attached but be warned it is a jumbled mess of the madness I have been trying to solve for months. modmain.lua