IsElementStreamable: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 22: Line 22:
==See Also==
==See Also==
{{Client element functions}}
{{Client element functions}}
[[Category:Needs Example]]

Revision as of 19:12, 25 September 2012

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

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.

Example

for _,v in ipairs(getElementsByType("player"))do
     outputChatBox(v) --returns false if you are inside a vehicle
end

See Also