CustomStaticImage.create

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function creates an static image .

Syntax

cimage CustomStaticImage.create(float X, float Y, float Width, float Height, string Location, [bool Relative, CW-element Parent])

Required Arguments

  • X: A float of the 2D x position of the image on a player's screen.
  • Y: A float of the 2D y position of the image on a player's screen.
  • Width: A float of the width of the image.
  • Height: A float of the height of the image.
  • Location: A string of texture path.

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • Relative: A boolean of whether sizes and positioning are relative.
  • parent: This is the parent that the image is attached to.

Returns

Returns element if image was created successfully, false otherwise.

Example

This example will display a image on player's screen.

Click to collapse [-]
Client-side

CustomStaticImage.create(100,100,200,200,"image.png")

Right:Digital/Ridden

See Also

Resource Wiki with content located here: Resource:CustomWidgets

Custom Widgets

This methods working for all elements except CustomDialogs and CustomTooltips

Set Functions

Get Functions

Event Functions


Custom Windows

Create Function

Set Functions

Get Functions

Event Functions


Custom Buttons

Create Function

Set Functions

Get Functions

Event Functions


Custom Progress Bars

Create Function

Set Functions

Get Functions

Event Functions


Custom Scroll Bars

Create Function

Set Functions

Get Functions


Custom Edit Boxes

All functions, what has mark CustomEditBox available for CustomEdit, CustomMemo and CustomSpinner.

Create Functions

Set Functions

Get Functions

Event Functions


Custom Check Boxes

Create Function

Set Functions

Get Functions

Event Functions


Custom Combo Boxes

Create Function

Set Functions

Get Functions

Event Functions


Custom Tabbed Panels

Create Function

Set Functions

Get Functions

Event Functions


Custom Labels

Create Function

Set Functions

Get Functions

Event Functions


Custom Dialogs

Create Function

Event Functions


Custom Tool Tips

Create Function

Set Function

Get Function


Custom Loadings

Create Function

Set Functions

Get Functions


Custom Scroll Panes

Create Function

Set Functions

Get Functions

Event Functions


Custom Table Views

Create Function

Set Functions

Get Functions

Event Functions


Custom Static Images

Create Function

Set Function

Get Function

Event Functions


Custom Text Boxes

Create Function

Set Function

Get Function


Custom Events


Other about Custom Widgets