You are viewing an old version of this page. Return to the latest version.
Version of 14:34, 7 May 2013 by I need to Update My Profile
No categories assigned
LUA:HasItem
- Last edited 10 years ago by I need to Update My Profile
This function will return a true or false if a target has an item.
Syntax
HasItem(target, item_id)
Usage
Example(Player)
if HasItem(Player, 1157) then
Say(Player, "This thing smells.")
end
When Example() is called the if statement checks if the player has the item with an id of "1157" and if it passes the player says the string "This thing smells.".