Template:DGS Plugin/Render Target Functions

From Multi Theft Auto: Wiki
Revision as of 09:47, 11 September 2025 by Liwa (talk | contribs) (Created page with "==Syntax== <syntaxhighlight lang="lua"> element dgsCreateRenderTarget( int width, int height [, bool isTransparent = true ] ) </syntaxhighlight> ===Required Arguments=== *'''width:''' The width of the render target in pixels. *'''height:''' The height of the render target in pixels. ===Optional Arguments=== *'''isTransparent:''' A boolean indicating if the render target should support transparency. Defaults to '''true'''. ===Returns=== Returns a render target element if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

element dgsCreateRenderTarget( int width, int height [, bool isTransparent = true ] )

Required Arguments

  • width: The width of the render target in pixels.
  • height: The height of the render target in pixels.

Optional Arguments

  • isTransparent: A boolean indicating if the render target should support transparency. Defaults to true.

Returns

Returns a render target element if it was created successfully, otherwise returns false along with an error message.