isElementStreamable | Multi Theft Auto: Wiki Skip to content

isElementStreamable

Client-side
Server-side
Shared

Pair: setElementStreamable

This function checks whether an element is streamable as set by setElementStreamable or not.

OOP Syntax Help! I don't understand this!

  • Method:element:isStreamable(...)
  • Variable: .streamable

Syntax

bool isElementStreamable ( ​element theElement )
Required arguments
  • theElement: The element to check the streamability of.

Returns

Returns true if the passed element is streamable like normal, false if this element must always be streamed in.

  • bool: result

Code Examples

client

Check if an element is streamable.

function onClientColShapeHit(theElement, matchingDimension)
if (isElementStreamable(theElement)) then -- Checks whether the element is streamable
outputChatBox("Element is streamable")
else
outputChatBox("Element not streamable")
end
end
addEventHandler("onClientColShapeHit", root, onClientColShapeHit)

See Also

Element Functions