Skip to content

StartPlayerQuest

Puts a quest into a player’s journal.

The quest is active, with the objectives the definition marks active shown (none marked: the first). The HUD announces it unless silent. Refused when the player holds the quest already or holds as many quests of its kind as they can.

StartPlayerQuest(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 OnPlayerSpawn(pid)
if not GetPlayerQuest(pid, ERRAND) then StartPlayerQuest(pid, ERRAND) end
end

SetPlayerQuestObjective · CompletePlayerQuest · RemovePlayerQuest · SetPlayerQuest · the Quests group of the index