# Enable/Disable Leaderboard State

Grammarenable|Enable/Disable state state for board|Leaderboard for players
FlagsNative | Action

Enable/Disable a state for the specified leaderboard.

# Arguments

Returns — void

native void BoardSetState(
	int inBoard,
	playergroup inPlayers,
	int inState,
	bool inVal,
);

Category: Leaderboard / Format

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1357
BoardSetState(gv_merc_Contract_Price_Board, PlayerGroupAll(), c_boardStateShowTitle, false)
// L2653
BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L2654
BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowHeader, false)
// L1333
BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1334
BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowHeader, false)
// L1030
BoardSetState(gv_platformSpectresBOARD, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1031
BoardSetState(gv_platformSpectresBOARD, PlayerGroupAll(), c_boardStateShowHeader, false)
// L4086
BoardSetState(gv_leaderBoardDrops, PlayerGroupAll(), c_boardStateShowHeader, false)
// L4087
BoardSetState(gv_leaderBoardDrops, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1190
BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowHeader, true)
// L1191
BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L786
BoardSetState(gv_leaderboard, PlayerGroupAll(), c_boardStateShowHeader, true)
// L787
BoardSetState(gv_leaderboard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1058
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L1059
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false)
// L1113
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L1114
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false)
// L1357
BoardSetState(gv_merc_Contract_Price_Board, PlayerGroupAll(), c_boardStateShowTitle, false)
// L2653
BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L2654
BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowHeader, false)
// L1333
BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1334
BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowHeader, false)
// L1030
BoardSetState(gv_platformSpectresBOARD, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1031
BoardSetState(gv_platformSpectresBOARD, PlayerGroupAll(), c_boardStateShowHeader, false)
// L4086
BoardSetState(gv_leaderBoardDrops, PlayerGroupAll(), c_boardStateShowHeader, false)
// L4087
BoardSetState(gv_leaderBoardDrops, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1190
BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowHeader, true)
// L1191
BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L786
BoardSetState(gv_leaderboard, PlayerGroupAll(), c_boardStateShowHeader, true)
// L787
BoardSetState(gv_leaderboard, PlayerGroupAll(), c_boardStateShowTitle, false)
// L1058
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L1059
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false)
// L1113
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L1114
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false)

# mods/challenges.sc2mod

LibChal.galaxy

// L256
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L257
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false)
// L264
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L265
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false)

# mods/core.sc2mod

NativeLib.galaxy

// L3479
BoardSetState(lp_board, lp_players, c_boardStateShowing, true)
// L3482
BoardSetState(lp_board, lp_players, c_boardStateShowing, false)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L2536
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L2538
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, true)
// L2546
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowing, true)
// L2536
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false)
// L2538
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, true)
// L2546
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowing, true)