Workshop.codes
Create

Array Unique Last updated April 03, 2025

Description

Returns a copy of a specified array with all duplicate values removed, preserving only the first occurrence of each unique element. The relative order of remaining elements is maintained. Useful for deduplicating player lists, tag sets, or any array that may accumulate repeated entries over time.

Snippet

Array Unique(Global.TaggedPlayers);

Properties

Returns: Array
Parameters: Array

Array
Type: Array, Default: Empty Array
The array from which duplicate values will be removed.

Workshop.codes