OnDgsRadioButtonChange

From Multi Theft Auto: Wiki

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

Parameters

bool state

Source

The source of this event is the dgs radio button.

Example

DGS = exports.dgs

local rb1 = dgsCreateRadioButton(300,300,200,30,"RadioButton Test 1",false)
local rb2 = dgsCreateRadioButton(300,320,200,30,"RadioButton Test 2",false)

function onStateChanged(state)
	if source == rb1 and state == true then
		outputChatBox("Selected RadioButton 1")
	end
end
addEventHandler("onDgsRadioButtonChange", root, onStateChanged)

See Also

DGS events

Plugin

Media

Color Picker

Client event functions