OnDgsCheckBoxChange

From Multi Theft Auto: Wiki
Revision as of 03:44, 24 March 2018 by Thisdp (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is triggered each time the dgs check box state has changed. ==Parameters== <syntaxhighlight lang="lua"> bool state </syntaxhighlight>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered each time the dgs check box state has changed.

Parameters

bool state

Source

The source of this event is the dgs check box.

Example

DGS = exports.dgs

local cb1 = dgsCreateCheckBox(300,300,200,30,"CheckBox Test 1",false)
local cb2 = dgsCreateCheckBox(300,320,200,30,"CheckBox Test 2",false)

function onStateChanged(state)
	if source == cb1 and state == true then
		outputChatBox("Selected CheckBox 1")
	end
end
addEventHandler("onDgsCheckBoxChange", root, 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