Difference between revisions of "LUA:HasFreeSlot"
(Created page with "= LUA Functions: HasFreeSlot() = Checks to see if the given player has an empty inventory slot ==== Syntax ==== HasFreeSlot(param1) ==== Parameters ==== ; Required - ''param1...") |
(No difference)
|
Latest revision as of 20:18, 11 September 2013
LUA Functions: HasFreeSlot()
Checks to see if the given player has an empty inventory slot
Syntax
HasFreeSlot(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the player who's inventory we want to check
Usage
function hailed(NPC, Spawn)
if HasFreeSlot(Spawn) then
Say(NPC, "You have an empty inventory slot")
end
end
The NPC will respond letting the player know if they have an empty inventory slot
Notes
Returns a bool