- Documentation
- Client functions
- guiStaticImageLoadImage
Function
guiStaticImageLoadImage
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")