isElementDoubleSided | Multi Theft Auto: Wiki Skip to content

isElementDoubleSided

Client-side
Server-side
Shared

Pair: setElementDoubleSided

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function checks whether an element is double-sided as set by setElementDoubleSided or not.

OOP Syntax Help! I don't understand this!

  • Method:element:isDoubleSided(...)
  • Variable: .doubleSided

Syntax

bool isElementDoubleSided ( element theElement )
Required Arguments
  • theElement: The element in which you'd like to check the double-sidedness of.

Returns

  • bool: value

Returns true if the theElement is double-sided, false otherwise.

Code Examples

shared
addCommandHandler("createObj",
function(plr, command, id)
local x, y, z = getElementPosition(plr)
local object = createObject (id, x, y, z)
if (isElementDoubleSided(object)) then -- checks if it is double sided or not
outputChatBox("The object is double sided", plr)
else
outputChatBox("The object is not double sided", plr)
end
end
)

See Also

Element Functions