isElementStreamable
Client
Tells whether an element streams in and out with distance.
bool isElementStreamable(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The 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