ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getElementPreviewImage

Function

getElementPreviewImage

ClientGame engineTrilogy Hub only

Returns the path of the preview PNG file (for dxDrawImage and dxCreateTexture) or false when there is no first shot yet.

Syntax

string getElementPreviewImage(preview preview)

Arguments

previewpreview
The preview.

Returns

The path or false.

Example

local img = getElementPreviewImage(preview)
if img then dxDrawImage(20, 20, 256, 256, img) end

See also