IsElementStreamable

From Multi Theft Auto: Wiki
Revision as of 20:48, 14 February 2020 by -ffs-PLASMA (talk | contribs)
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function IsElementStreamable needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

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

Syntax

bool isElementStreamable ( element theElement )

OOP Syntax Help! I don't understand this!

Method: element:isStreamable(...)
Variable: .streamable
Counterpart: setElementStreamable

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.

Example

Click to collapse [-]
Client

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