addserver function to set inventory show

This commit is contained in:
hydrant
2021-05-22 19:10:40 +02:00
parent 34033eb875
commit 848353053b
4 changed files with 27 additions and 4 deletions

View File

@@ -769,7 +769,7 @@ namespace ReallifeGamemode.Server.Events
if (!player.IsLoggedIn() || player.GetData<bool>("isDead")) return;
if (player.GetData<bool>("isDead")) return;
player.TriggerEvent("inventoryShow");
player.ToggleInventory();
InventoryManager.SetBackpackItems(player);
}