isElementLowLOD | Multi Theft Auto: Wiki Skip to content

isElementLowLOD

Client-side
Server-side
Shared

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 reveals if an element is low LOD.

Note

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

Syntax

isElementLowLOD ( )

Code Examples

server

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