Skip to content

GetPlayerQuest

A quest as a player has it.

GetPlayerQuest(pid, id)
Parameter Type
pid number the player
id number|string the quest’s id or key

table - {key =, state =, objectives = {state, ...}}; nil when the player does not hold the quest

local q = GetPlayerQuest(pid, ERRAND)
if q and q.objectives[2] == "done" then SendClientMessage(pid, COLOR_YELLOW, "Bring the ledger back.") end

GetPlayerQuests · SetPlayerQuestObjective · the Quests group of the index