Has Cosmetic Fact
Checks if a player has a specific cosmetic unlocked.
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
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. |
Общие поля TypeWriter (comment)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
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.