- Documentation
- Client functions
- isElementStreamedIn
Function
isElementStreamedIn
Checks whether an element is loaded for this player.
Syntax
bool isElementStreamedIn(element theElement)Arguments
theElementelement- The element.
Returns
true if loaded.
Example
addEventHandler("onClientRender", root, function()
if isElement(vehicle) and isElementStreamedIn(vehicle) then
local x, y, z = getElementPosition(vehicle)
local sx, sy = getScreenFromWorldPosition(x, y, z + 1)
if sx then dxDrawText("Na sprzedaż", sx, sy) end
end
end)