- Dokumentacja
- Funkcje serwera
- setElementVisibleTo
Funkcja
setElementVisibleTo
Pokazuje albo chowa element wybranemu graczowi. Dotyczy blipów, znaczników, wyświetlaczy tekstu i podobnych.
Składnia
bool setElementVisibleTo(element theElement, element visibleTo, bool visible)Argumenty
theElementelement- Element.
visibleToelement- Gracz albo
root. visiblebooltruepokazuje.
Zwraca
true przy powodzeniu.
Przykład
Znacznik widoczny tylko dla jednego gracza.
local marker = createMarker(2000, -1500, 13, "checkpoint")
setElementVisibleTo(marker, root, false)
setElementVisibleTo(marker, player, true)