OnDgsPreCreate

From Multi Theft Auto: Wiki

This event is fired when the item of a dgs-dxgui element has been created but before finishing data calculating which is different from onDgsCreate.

Parameters

None

Source

The source of this event is the dgs-dxgui element that is created.

Example

This example outputs a message when a dgs-dxgui element created.

DGS = exports.dgs

function onCreated()
	outputChatBox("A "..DGS:dgsGetType(source).." has been created")
end
addEventHandler("onDgsPreCreate",getRootElement(),onCreated)

See Also

DGS events

Plugin

Media

Color Picker

Client event functions