OnDgsSwitchButtonStateChange

From Multi Theft Auto: Wiki
Revision as of 15:20, 22 April 2020 by Temois (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is triggered each time the dgs switch button state has changed. ==Parameters== <syntaxhighlight lang="lua"> bool state </syntaxhighligh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered each time the dgs switch button state has changed.

Parameters

bool state

Source

The source of this event is the dgs switch button.

Example

DGS = exports.dgs

button = DGS:dgsCreateSwitchButton( 0.7, 0.1, 0.2, 0.1, "On", "Off", false, true )
function onStateChanged(state)
	outputChatBox(state == true and "On" or "Off")
end
addEventHandler("onDgsSwitchButtonStateChange", button, onStateChanged)

See Also

DGS events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Client event functions