GetPlayerThirdPerson
The third-person view the mode gave a player (SetPlayerThirdPerson).
"off" until a mode changed it, with third person kept on in fights and when aiming and the aiming dot on. With
"allow", which view the player looks from at the moment is their own choice and the server does not know it.
Syntax
Section titled “Syntax”GetPlayerThirdPerson(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”string, boolean, boolean, boolean - four values mode, inFights, whenAiming, crosshair: "off", "allow" or "force", then false where the player is held in first person (a fight, aiming) and true where third person stays on, then whether the aiming dot shows in third person; a single nil when not connected
Example
Section titled “Example”local mode, inFights, whenAiming, crosshair = GetPlayerThirdPerson(pid)if mode ~= "off" and not whenAiming then SendClientMessage(pid, COLOR_SERVER, "The third-person view gives way to first person while you aim.")endSee also
Section titled “See also”SetPlayerThirdPerson · the Players group of the index
