OnDgsElementRender

From Multi Theft Auto: Wiki

This event is triggered every time after a dgs element renders with property renderEventCall.

Parameters

None

Source

The source is the dgs element that renders.

Example

DGS = exports.dgs
window = DGS:dgsCreateWindow(200,200,500,200,"test",false)
dgsSetProperty(window,"renderEventCall",true)

function drawAboveWindow ()
	local x,y = DGS:dgsGetPosition(window,false)
	dxDrawRectangle(x,y,500,200,tocolor(0,0,0,200),true) -- POSTGUI is always set to true
end
addEventHandler ( "onDgsElementRender", window, drawAboveWindow )

See Also

DGS events

Plugin

Media

Color Picker

Client event functions