Skip to content

HasPlayerCodexEntry

Whether a player has a Codex entry unlocked.

As their game last reported it, or as the mode set it since.

HasPlayerCodexEntry(pid, entry)
Parameter Type
pid number the player
entry string the entry’s perk GUID or name

boolean

if not HasPlayerCodexEntry(pid, "codex_gen_pohreb") then
SetPlayerCodexEntry(pid, "codex_gen_pohreb", true, true)
end

SetPlayerCodexEntry · the The Codex group of the index