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

Function

setElementDimension

Server and clientElementsIdentical to MTA:SA

Moves an element to another dimension. Elements in different dimensions cannot see each other.

Syntax

bool setElementDimension(element theElement, int dimension)

Arguments

theElementelement
The element.
dimensionint
Dimension 0-65535.

Returns

true on success.

Example

addCommandHandler("arena", function(player)
    setElementDimension(player, 10)
    setElementPosition(player, 0, 0, 5)
end)

Notes

Also works in client scripts. On the client it changes the dimension of every element, also sounds and players.

See also