getLowLODElement | Multi Theft Auto: Wiki Skip to content

getLowLODElement

Client-side
Server-side
Shared

Pair: setLowLODElement

This function return the low LOD element that an element is associated with.

OOP Syntax Help! I don't understand this!

  • Method:element:getLowLOD(...)
  • Variable: .lowLOD

Syntax

element|false getLowLODElement ( ​element theElement )
Required Arguments
  • theElement: The element whose low LOD version we want to get. This can be a object or building.

Returns

  • element|false: lod element

Returns a low LOD element if successful, false otherwise.

Code Examples

shared
local obj = createObject(1488, 0, 0, 3, 0, 0, 90) -- Create object
local lod_obj = createObject(1337, 0, 0, 3, 0, 0, 90, true) -- Create LOD object
setLowLODElement(obj, lod_obj) -- Setting LOD, 'attach' to obj
local lod_get = getLowLODElement(obj) -- Get LOD from obj
-- lod_get = lod_obj

See Also

Element Functions