GetPlayerVirtualWorld
The virtual world the player is in.
Players and entities are replicated to each other within one world only; 0 is the shared world. A registered name
waiting for its /login sits in a world of its own. See Getting started and
SetPlayerVirtualWorld.
Syntax
Section titled “Syntax”GetPlayerVirtualWorld(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the world; nil when not connected
Example
Section titled “Example”if GetPlayerVirtualWorld(pid) ~= 0 then SendClientMessage(pid, COLOUR_SERVER, "You are in a private instance.") endSee also
Section titled “See also”SetPlayerVirtualWorld · GetEntityVirtualWorld · the Players group of the index
