HasPlayerCodexEntry
Whether a player has a Codex entry unlocked.
As their game last reported it, or as the mode set it since.
Syntax
Section titled “Syntax”HasPlayerCodexEntry(pid, entry)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
entry |
string | the entry’s perk GUID or name |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if not HasPlayerCodexEntry(pid, "codex_gen_pohreb") then SetPlayerCodexEntry(pid, "codex_gen_pohreb", true, true)endSee also
Section titled “See also”SetPlayerCodexEntry · the The Codex group of the index
