RemovePlayerQuest
Takes a quest out of a player’s journal.
The player may get it again later. Frees its place among the quests of its kind the player can hold.
Syntax
Section titled “Syntax”RemovePlayerQuest(pid, id)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number|string | the quest’s id or key |
Returns
Section titled “Returns”boolean - false when the player does not hold it
Example
Section titled “Example”for _, q in ipairs(GetPlayerQuests(pid)) do if q.state ~= "active" then RemovePlayerQuest(pid, q.id) endendSee also
Section titled “See also”StartPlayerQuest · DestroyQuest · the Quests group of the index
