Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

restoreInventory

restoreInventory(entity, saved): void

Lays a save’s bag on the entity, a bag of as many slots as it held. A stack of an item the game no longer registers is dropped, with a warning in development, and the rest loads.

Parameter Type
entity Entity
saved SavedInventory

void