No categories assigned

LUA:HasFreeSlot

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