No categories assigned

LUA:IsPlayer

LUA Functions: IsPlayer()

Checks to see if the given spawn is a player


Syntax

var = IsPlayer(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn we want to check


Usage

function hailed(NPC, Spawn)
    if IsPlayer(Spawn) then
        Say(NPC, "You are a player")
    end
end

The NPC will respond if the spawn that hailed it is a player

Notes

Returns a bool