ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiStaticImageLoadImage

Function

guiStaticImageLoadImage

ClientInterface (GUI)Identical to MTA:SA

Replaces the image file of the control.

Syntax

bool guiStaticImageLoadImage(gui-staticimage theElement, string filename)

Arguments

theElementgui-staticimage
The image.
filenamestring
File path.

Returns

true on success.

Example

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