Skip to content

FailPlayerQuest

Fails a quest for a player.

The HUD announces it unless silent; the quest moves to the journal’s done quests.

FailPlayerQuest(pid, id [, silent])
Parameter Type
pid number the player
id number|string the quest’s id or key
silent boolean true = no HUD banner (optional)

boolean, string - accepted; the reason when not

function OnPlayerDeath(pid)
if GetPlayerQuest(pid, ESCORT) then FailPlayerQuest(pid, ESCORT) end
end

CompletePlayerQuest · RemovePlayerQuest · the Quests group of the index