M MY Multiplayer: Wiki
Side
Kind

isElementStreamable

Client

Tells whether an element streams in and out with distance.

bool isElementStreamable(element element)

Parameters

NameTypeDescription
elementelementThe element.

Returns

true if the element follows the distance (the default), false if it always stays streamed in or is not a world element.

Example

local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle and isElementStreamable(vehicle) then
    setElementStreamable(vehicle, false)
end

See also