Toggle

UI:Toggle(<string> ToggleName, <string> ToggleDescription, <bool> State, <func> Callback)

Parameters

Parameter

Type

Description

Default

ButtonName

string

Name of the toggle

"Toggle"

ButtonDescription

string

Description of the toggle

""

State

bool

Default toggle state

false

Callback

function

Callback function

function() end

Example

UI:Toggle("Toggle", "Toggle description", false, function(state)
    print(state)
end)

Last updated

Was this helpful?