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

Function

setElementMatrix

Server and clientElementsIdentical to MTA:SA

Sets the element's position and rotation from a matrix (a 4x4 table or a Matrix object).

Syntax

bool setElementMatrix(element theElement, table matrix)

Arguments

theElementelement
The element.
matrixtable
The matrix.

Returns

true on success.

Example

setElementMatrix(copy, getElementMatrix(original))

Notes

Client. Works in a client script too; a server element then changes for this player only.

See also