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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”boolean, string - accepted; the reason when not
Example
Section titled “Example”function OnPlayerSpawn(pid) if not GetPlayerQuest(pid, ERRAND) then StartPlayerQuest(pid, ERRAND) endendSee also
Section titled “See also”SetPlayerQuestObjective · CompletePlayerQuest · RemovePlayerQuest · SetPlayerQuest · the Quests group of the index
