DgsCreateGIF: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(No difference)

Latest revision as of 10:28, 23 August 2025

This function creates a GIF interface plugin.

Syntax

element dgsCreateGIF( string pathOrRaw )

Required Arguments

  • pathOrRaw: A string representing the path to your GIF file, or the raw GIF data

Returns

Returns a dgs-dxgif element (DGS Plugin Type)[ dgs-dxgif (Element Type) ] if succeed, false otherwise

Example

DGS = exports.dgs --get exported functions from dgs

local gif = DGS:dgsCreateGIF("test.gif")
DGS:dgsGIFPlay(gif,1)  --Play GIF with Speed 1x
image = DGS:dgsCreateImage(500,500,200,200,gif,false)

See Also