Code: Select all
local frame = player.gui.screen.add{type="frame"}
frame.force_auto_center()
local switch = frame.add{type="switch", switch_state="left", left_label_caption="ON", right_label_caption="OFF"}
switch.style.left_margin = 30
Code: Select all
local frame = player.gui.screen.add{type="frame"}
frame.force_auto_center()
local switch = frame.add{type="switch", switch_state="left", left_label_caption="ON", right_label_caption="OFF"}
switch.style.left_margin = 30