mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 21:56:45 +00:00 
			
		
		
		
	| AddItem, RemoveItem, GetItemName, GetItemCount, GetItemHealth, GetInventorySize SendInventory
Example:
```lua
tes3mp.AddItem(pid, "glass dagger", 1, 50)
tes3mp.AddItem(pid, "glass dagger", 1, -1)
tes3mp.SendInventory(pid)
tes3mp.RemoveItem(pid, "glass dagger", 1)
tes3mp.SendInventory(pid)
local invSize = tes3mp.GetInventorySize(pid) - 1
for i = 0, invSize do
    print(("%s %d %d"):format(tes3mp.GetItemName(pid, i), tes3mp.GetItemCount(pid, i), tes3mp.GetItemHealth(pid, i)))
end
``` | ||
|---|---|---|
| .. | ||
| CharClass.cpp | ||
| CharClass.hpp | ||
| Chat.cpp | ||
| GUI.cpp | ||
| GUI.hpp | ||
| Items.cpp | ||
| Items.hpp | ||
| Stats.cpp | ||
| Stats.hpp | ||
| Timer.cpp | ||
| Translocations.cpp | ||
| Translocations.hpp | ||
| World.cpp | ||
| World.hpp | ||