SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje klienta
  3. guiStaticImageLoadImage

Funkcja

guiStaticImageLoadImage

KlientInterfejs (GUI)Identyczna z MTA:SA

Podmienia plik obrazka w kontrolce.

Składnia

bool guiStaticImageLoadImage(gui-staticimage theElement, string filename)

Argumenty

theElementgui-staticimage
Obrazek.
filenamestring
Ścieżka do pliku.

Zwraca

true przy powodzeniu.

Przykład

guiStaticImageLoadImage(avatar, "img/avatar_" .. getElementModel(localPlayer) .. ".png")