DgsCheckBoxGetSelected

From Multi Theft Auto: Wiki
Revision as of 17:20, 4 October 2017 by Ahmed Ly (talk | contribs) (Created page with "{{Client function}} __NOTOC__ This function gets a checkbox's selection state. ==Syntax== <syntaxhighlight lang="lua"> bool DgsDxCheckBoxGetSelected ( element theCheckbox )...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function gets a checkbox's selection state.

Syntax

bool DgsDxCheckBoxGetSelected ( element theCheckbox )

Required Arguments

  • theCheckbox : The checkbox you wish to retrieve the selection state of.

Returns

Returns true if the checkbox is selected, false if it is not.

Example

This example makes a different beep based on the state when any checkbox has been clicked.

--TODO