isElementStreamable | Multi Theft Auto: Wiki Skip to content

isElementStreamable

Client-side
Server-side
Shared

Pair: setElementStreamable

Manual Review Required

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


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

  • bool: value

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

Code Examples

shared

Check if

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