Has Cosmetic Fact
Checks if a player has a specific cosmetic unlocked.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
group | Ref<GroupEntry> | — | — |
cosmeticId | String | — | ID of the cosmetic to check. |
artifact | Ref<PlayerCosmeticsArtifactEntry> | — | Reference to the player data artifact. If empty, tries to find the default one. |
Common TypeWriter fields (comment)
| Field | Type | Default | Description |
|---|---|---|---|
comment | String | — | — |
How to use it
Returns 1 when the cosmetic was unlocked for the player and 0 otherwise. Set cosmeticId to the entry ID of the cosmetic definition. A cosmetic that is only available through its permission is not counted, and the artifact field is not read.