No categories assigned

LUA:HasQuest

Returns a true or false if a player has a quest.

Syntax

HasQuest(Spawn, QuestID)

Usage

function hailed(NPC, Spawn)
  if HasQuest(Spawn, 1) then
       Example()
  end
end

This runs the function "Example" when an npc is hailed if a player has the quest with an ID of 1.


Back to LUA Quests Index