No categories assigned
LUA:HasFreeSlot
- Last edited 12 years ago by I need to Update My Profile
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