guiStaticImageLoadImage | Multi Theft Auto: Wiki Skip to content

guiStaticImageLoadImage

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows you to change the image in GUI static image element to another one. Tip: If you set other images as children you will have to use setElementCallPropagationEnabled to only affect the parent image.

Syntax

guiStaticImageLoadImage ( )

Code Examples

client

This example creates a static image ("myimage.png") and replaces it with other image ("otherimage.png") 10 seconds after creation.

local myImage = guiCreateStaticImage( 0.45, 0.48, 0.2, 0.5, "myimage.png", true )
setTimer( guiStaticImageLoadImage, 10000, 1, myImage, "otherimage.png" )

See Also

GUI Functions