Skip to content

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.

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

boolean - false when the player does not hold it

for _, q in ipairs(GetPlayerQuests(pid)) do
if q.state ~= "active" then RemovePlayerQuest(pid, q.id) end
end

StartPlayerQuest · DestroyQuest · the Quests group of the index