- Documentation
- Client functions
- dxUpdateScreenSource
Function
dxUpdateScreenSource
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)