isElementLowLOD | Multi Theft Auto: Wiki Skip to content

isElementLowLOD

Client-side
Server-side
Shared

Manual Review Required

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


This function reveals if an element is low LOD.

Note

See setLowLODElement for the list of valid element types that can be assigned with that function.

OOP Syntax Help! I don't understand this!

Syntax

bool isElementLowLOD ( element theElement )
Required Arguments
  • theElement: The element whose low LOD status we want to get.

Returns

  • bool: value

Returns true if the element is low LOD, false otherwise.

Code Examples

shared

This example will show how many low lods objects is around you.

addCommandHandler("lowlod",function ()
local lowlods = 0
for i, obj in ipairs(getElementsByType("object",root,true)) do
if isElementLowLOD(obj) then
lowlods = lowlods + 1
end
end
outputChatBox("Was found "..lowlods.." lowlod objects around you.",255,255,0)
end)

See Also

Element Functions