Skip to content

Player:GetPlayerType

Read player type for this player.

player:GetPlayerType()

Inputs: None beyond the Player receiver.

Output: Integer or nil. Native PlayerType value; nil when unavailable.

Errors and unavailable states: A wrong receiver can raise a Lua argument error. An unavailable live read returns nil as described in Output.

See Lua values and game objects for lifetime and enum guidance.