GetPlayerQuest
A quest as a player has it.
Syntax
Section titled “Syntax”GetPlayerQuest(pid, id)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number|string | the quest’s id or key |
Returns
Section titled “Returns”table - {key =, state =, objectives = {state, ...}}; nil when the player does not hold the quest
Example
Section titled “Example”local q = GetPlayerQuest(pid, ERRAND)if q and q.objectives[2] == "done" then SendClientMessage(pid, COLOR_YELLOW, "Bring the ledger back.") endSee also
Section titled “See also”GetPlayerQuests · SetPlayerQuestObjective · the Quests group of the index
