- Dokumentacja
- Funkcje serwera
- getPlayerHudComponentProperty
Funkcja
getPlayerHudComponentProperty
Zwraca właściwość wyglądu składnika interfejsu ustawioną przez setPlayerHudComponentProperty.
Składnia
mixed getPlayerHudComponentProperty(player thePlayer, string component, string property)Argumenty
thePlayerplayer- Gracz.W MTA:SA inny typ: string component
componentstring- Składnik, np.
"radar". propertystring- Właściwość, np.
"posX".Nie ma go w MTA:SA
Różnice względem MTA:SA
- Argumenty zaznaczone innym kolorem różnią się od MTA:SA.
W MTA:SA
getPlayerHudComponentProperty(string component, string property)Zwraca
Wartość albo false.
Przykład
local x = getPlayerHudComponentProperty(player, "radar", "posX")
Zobacz też
setPlayerHudComponentPropertyZapisuje wygląd składnika interfejsu: jedną właściwość albo całą tabelę. Właściwości:posX,posY,size,fillColor,fillColorSecondary,textColor,alignment,drawBlackBorder,drawPercentage,blinkingTimeLimit,textOutline,textShadow,useFontTexture.resetPlayerHudComponentPropertyPrzywraca domyślny wygląd składnika interfejsu (jedną właściwość albo wszystkie).