You are viewing an old version of this page. Return to the latest version.
Version of 17:24, 3 May 2013 by I need to Update My Profile
No categories assigned
LUA:HasQuest
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: 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.