isElementDoubleSided | Multi Theft Auto: Wiki Skip to content

isElementDoubleSided

Client-side
Server-side
Shared

Pair: setElementDoubleSided

This page is incomplete! Help wanted!

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.

Syntax

isElementDoubleSided ( )

Code Examples

server
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