ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getElementDimension

Function

getElementDimension

Server and clientElementsIdentical to MTA:SA

Returns the element's dimension. Elements in different dimensions cannot see each other.

Syntax

int getElementDimension(element theElement)

Arguments

theElementelement
The element.

Returns

Dimension number (0-65535).

Example

if getElementDimension(player) ~= 0 then
    setElementDimension(player, 0)
end

See also