ItemSave

Hook Documentation for Item Save Module.

Functions

MODULE:OnSavedItemLoaded(loadedItems)

Called when saved items are loaded from the database. This hook is called after the saved items have been successfully loaded from the database. It can be used to perform additional actions with the loaded items.

Parameters

  • loadedItems

    A table containing the loaded item entities.

MODULE:ShouldDeleteSavedItems()

Determines if saved items should be deleted on server restart. This hook is called to check whether saved items should be deleted when the server restarts.

Returns

  • bool

    True if saved items should be deleted, false otherwise.