setElementDoubleSided | Multi Theft Auto: Wiki Skip to content

setElementDoubleSided

Client-side
Server-side
Shared

Pair: isElementDoubleSided

Manual Review Required

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


This function allows you to set the double-sidedness of an element's model. When an element's model is double-sided, it's back facing triangles become visible.

OOP Syntax Help! I don't understand this!

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

Syntax

bool setElementDoubleSided ( element theElement, bool enable )
Required Arguments
  • theElement: The element in which you'd like to set the double-sidedness of.
  • enable: MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if theElement is valid, false otherwise.

Code Examples

shared

This example shows how to set the double-sidedness of an object in a map file.

<map mod="deathmatch">
<object name="object (1)" posX="100" posY="200" posZ="20" rotX="0" rotY="0" rotZ="0" doublesided="true" model="3860"/>
</map>

See Also

Element Functions