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

Function

dxUpdateScreenSource

ClientDrawing (dx)Identical to MTA:SA

Refreshes a screen source with the game image (without the script overlay). The image arrives 1-2 frames later.

Syntax

bool dxUpdateScreenSource(element screenSource [, bool resampleNow])

Arguments

screenSourceelement
The source.
resampleNowbool, optional
No effect, for compatibility with existing scripts.

Returns

true on success.

Example

local screen = dxCreateScreenSource(320, 180)
setTimer(dxUpdateScreenSource, 1000, 0, screen)

See also