- Dokumentacja
- Funkcje klienta
- isElementStreamedIn
Funkcja
isElementStreamedIn
Sprawdza, czy element jest wczytany u tego gracza.
Składnia
bool isElementStreamedIn(element theElement)Argumenty
theElementelement- Element.
Zwraca
true, jeśli wczytany.
Przykład
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)