Skip to main content
Docs
›
list.remove

list.remove

List

Removes a picked entry from a list.

Signature

list.remove(ref: ElementRef, key: string, item: ContentRef): void

Parameters

NameTypeRequiredDescription
refElementRefRequiredThe element it works on, usually self.
keystringRequiredThe name of the list.
itemContentRefRequiredThe entry the player picked.

Returns

void Nothing.

Example

list.remove(self, "pack", trinket);