GetPlayerDimension: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Gets the dimension of this player.}} {{FuncSyntax|GetPlayerDimension(player)}} {{FuncParameters}} {{FuncParam|player|The play..."
 
Guewen (talk | contribs)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|Gets the dimension of this player.}}
{{FuncDescription|Gets the dimension of this player set with [[SetPlayerDimension]]}}


{{FuncSyntax|GetPlayerDimension(player)}}
{{FuncSyntax|GetPlayerDimension(player)}}
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight Lang="Lua">
print(GetPlayerDimension(1))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[SetPlayerDimension]]

Latest revision as of 18:59, 27 December 2019

GetPlayerDimension

Type: Function
Context: Server
Introduced: v1.0

Description

Gets the dimension of this player set with SetPlayerDimension

Syntax

GetPlayerDimension(player)

Parameters

  • player
    The player identifier.

Return Value

  • Returns the dimension.

Example

print(GetPlayerDimension(1))

See also