Space.UI.AddNotification('Warning','This is a notification')
--This script will send a notification every time a new player joins region--including the users namefunctionsendNotification(Av) Space.UI.AddNotification("New User","User joined: " .. Av.Username)endSpace.Scene.OnPlayerJoin(sendNotification)
OpenAppearanceEditor
void OpenAppearanceEditor()
Opens the Appearance Editor (Outfit)
Space.UI.OpenAppearanceEditor()
--This script will make a button open the Appearance Editor--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')OnClick=function() Space.UI.OpenAppearanceEditor() endtheButton.UIButton.OnClick(OnClick)
Clears a previously added Global Action Button 'button'
Parameter
Type
Description
Space.UI.ClearGlobalActionButton("The Button")
--This script will make this object make you dance when clicked--and also show a Global Action button to let you stop the dance (and clear that button)--[required: Add the dance animation to the Scripting Runtime's "Resources" section with name "dance"]thisObj = Space.Host.ExecutingObjectdanceAnim = Space.GetResource("dance")isDancing =falsegbClick=function() Space.Scene.PlayerAvatar.StopCustomAnimation() Space.UI.ClearGlobalActionButton("Stop Dance") isDancing =falseendOnClick=function()ifnot isDancing then Space.Scene.PlayerAvatar.PlayCustomAnimation(danceAnim) Space.UI.AddGlobalActionButton("Stop Dance","", gbClick) isDancing =trueendendthisObj.AddClickable()thisObj.Clickable.OnClick(OnClick)
OpenQuestsWindow
void OpenQuestsWindow ()
Opens the Quests window. (white-label grid only)
Space.UI.OpenQuestsWindow()
example --This script will make a button show/hide the Quests Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideQuestsWindow() isShown =falseelse Space.UI.OpenQuestsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideQuestsWindow
void HideQuestsWindow ()
Hides the Quests window. (white-label grid only)
Space.UI.HideQuestsWindow()
--This script will make a button show/hide the Quests Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideQuestsWindow() isShown =falseelse Space.UI.OpenQuestsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenSettingsWindow
void OpenSettingsWindow ()
Opens the Settings window. (white-label grid only)
Space.UI.OpenSettingsWindow()
--This script will make a button show/hide the Settings Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideSettingsWindow() isShown =falseelse Space.UI.OpenSettingsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideSettingsWindow
void HideSettingsWindow ()
Hides the Settings window. (white-label grid only)
Space.UI.HideSettingsWindow()
--This script will make a button show/hide the Settings Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideSettingsWindow() isShown =falseelse Space.UI.OpenSettingsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenFriendsWindow
void OpenFriendsWindow ()
Opens the Friends window. (white-label grid only)
Space.UI.OpenFriendsWindow()
--This script will make a button show/hide the Friends Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown = falseOnClick = function() if isShown then Space.UI.HideFriendsWindow() isShown = false else Space.UI.OpenFriendsWindow() isShown = true endendtheButton.UIButton.OnClick(OnClick)
HideFriendsWindow
HideFriendsWindow
void HideFriendsWindow ()
Hides the Friends window. (white-label grid only)
Space.UI.HideFriendsWindow()
--This script will make a button show/hide the Friends Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideFriendsWindow() isShown =falseelse Space.UI.OpenFriendsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenExploreWindow
void OpenExploreWindow ()
Opens the Explore window. (white-label grid only)
Space.UI.OpenExploreWindow()
--This script will make a button show/hide the Explore Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideExploreWindow() isShown =falseelse Space.UI.OpenExploreWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideExploreWindow
void HideExploreWindow ()
Hides the Explore window (white-label grid only)
Space.UI.HideExploreWindow()
--This script will make a button show/hide the Explore Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideExploreWindow() isShown =falseelse Space.UI.OpenExploreWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenEventsWindow
void OpenEventsWindow ()
Opens the Events window (white-label grid only)
Space.UI.OpenEventsWindow()
--This script will make a button show/hide the Events Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideEventsWindow() isShown =falseelse Space.UI.OpenEventsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideEventsWindow
void HideEventsWindow ()
Hides the Events window (white-label grid only)
Space.UI.HideEventsWindow()
--This script will make a button show/hide the Events Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideEventsWindow() isShown =falseelse Space.UI.OpenEventsWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenHomeWindow
void OpenHomeWindow ()
Opens the Home window (white-label grid only)
Space.UI.OpenHomeWindow()
--This script will make a button show/hide the Home Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideHomeWindow() isShown =falseelse Space.UI.OpenHomeWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideHomeWindow
void HideHomeWindow ()
Hides the Home window (white-label grid only)
Space.UI.HideHomeWindow()
--This script will make a button show/hide the Home Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideHomeWindow() isShown =falseelse Space.UI.OpenHomeWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenInventoryWindow
void OpenInventoryWindow ()
Opens the Inventory window (white-label grid only)
Space.UI.OpenInventoryWindow()
--This script will make a button show/hide the Inventory Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideInventoryWindow() isShown =falseelse Space.UI.OpenInventoryWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideInventoryWindow
void HideInventoryWindow ()
Hides the Inventory window (white-label grid only)
Space.UI.HideInventoryWindow()
--This script will make a button show/hide the Inventory Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideInventoryWindow() isShown =falseelse Space.UI.OpenInventoryWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenOutfitWindow
void OpenOutfitWindow ()
Opens the Outfit window (white-label grid only)
Space.UI.OpenOutfitWindow()
--This script will make a button show/hide the Outfit Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideOutfitWindow() isShown =falseelse Space.UI.OpenOutfitWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideOutfitWindow
void HideOutfitWindow ()
Hides the Outfit window (white-label grid only)
Space.UI.HideOutfitWindow()
--This script will make a button show/hide the Outfit Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideOutfitWindow() isShown =falseelse Space.UI.OpenOutfitWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenShopWindow
void OpenShopWindow ()
Opens the Shop window (white-label grid only)
Space.UI.OpenShopWindow()
--This script will make a button show/hide the Shop Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideShopWindow() isShown =falseelse Space.UI.OpenShopWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideShopWindow
void HideShopWindow ()
Hides the Shop window (white-label grid only)
Space.UI.HideShopWindow()
--This script will make a button show/hide the Shop Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideShopWindow() isShown =falseelse Space.UI.OpenShopWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenSnapshotWindow
void OpenSnapshotWindow ()
Opens the Snapshot window (white-label grid only)
Space.UI.OpenSnapshotWindow()
--This script will make a button show/hide the Snapshot Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideSnapshotWindow() isShown =falseelse Space.UI.OpenSnapshotWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideSnapshotWindow
void HideSnapshotWindow ()
Hides the Snapshot window (white-label grid only)
Space.UI.HideSnapshotWindow()
--This script will make a button show/hide the Snapshot Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideSnapshotWindow() isShown =falseelse Space.UI.OpenSnapshotWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenHelpWindow
void OpenHelpWindow ()
Opens the Help window (white-label grid only)
Space.UI.OpenHelpWindow()
--This script will make a button show/hide the Help Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideHelpWindow() isShown =falseelse Space.UI.OpenHelpWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideHelpWindow
void HideHelpWindow ()
Hides the Help window (white-label grid only)
Space.UI.HideHelpWindow()
--This script will make a button show/hide the Help Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideHelpWindow() isShown =falseelse Space.UI.OpenHelpWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenProfileWin
void OpenProfileWin ()
Opens the Profile window (white-label grid only)
Space.UI.OpenProfileWin()
--This script will make a button show/hide the Profile Win--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideProfileWindow() isShown =falseelse Space.UI.OpenProfileWin() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideProfileWindow
void HideProfileWindow()
Hides the Profile window (white-label grid only)
Space.UI.HideProfileWindow()
--This script will make a button show/hide the Profile Win--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideProfileWindow() isShown =falseelse Space.UI.OpenProfileWin() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenUpgradeAccountWindow
void OpenUpgradeAccountWindow ()
Opens the Upgrade Account window (white-label grid only)
Space.UI.OpenUpgradeAccountWindow()
--This script will make a button show/hide the Upgrade Account Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideUpgradeAccountWindow() isShown =falseelse Space.UI.OpenUpgradeAccountWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideUpgradeAccountWindow
void HideUpgradeAccountWindow ()
Hides the Upgrade Account window (white-label grid only)
Space.UI.HideUpgradeAccountWindow()
--This script will make a button show/hide the Upgrade Account Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideUpgradeAccountWindow() isShown =falseelse Space.UI.OpenUpgradeAccountWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenRegionInfoWindow
void OpenRegionInfoWindow ()
Opens the Region Info window (white-label grid only)
Space.UI.OpenRegionInfoWindow()
--This script will make a button show/hide the Region Info Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideRegionInfoWindow() isShown =falseelse Space.UI.OpenRegionInfoWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideRegionInfoWindow
void HideRegionInfoWindow ()
Hides the Region Info window (white-label grid only)
Space.UI.HideRegionInfoWindow()
--This script will make a button show/hide the Region Info Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideRegionInfoWindow() isShown =falseelse Space.UI.OpenRegionInfoWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenExitWindow
void OpenExitWindow ()
Opens the Exit window (white-label grid only)
Space.UI.OpenExitWindow()
--This script will make a button show/hide the Exit Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideExitWindow() isShown =falseelse Space.UI.OpenExitWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideExitWindow
void HideExitWindow ()
Hides the Exit window (white-label grid only)
Space.UI.HideExitWindow()
--This script will make a button show/hide the Exit Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideExitWindow() isShown =falseelse Space.UI.OpenExitWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenMailWindow
void OpenMailWindow ()
Opens the Mail window (white-label grid only)
Space.UI.OpenMailWindow()
--This script will make a button show/hide the Mail Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideMailWindow() isShown =falseelse Space.UI.OpenMailWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideMailWindow
void HideMailWindow ()
Hides the Mail window (white-label grid only)
Space.UI.HideMailWindow()
--This script will make a button show/hide the Mail Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideMailWindow() isShown =falseelse Space.UI.OpenMailWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenFeedbackWindow
void OpenFeedbackWindow ()
Shows the Feedback window (white-label grid only)
Space.UI.OpenFeedbackWindow()
--This script will make a button show/hide the Feedback Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideFeedbackWindow() isShown =falseelse Space.UI.OpenFeedbackWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideFeedbackWindow
void HideFeedbackWindow ()
Hides the Feedback window (white-label grid only)
Space.UI.HideFeedbackWindow()
--This script will make a button show/hide the Mail Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideFeedbackWindow() isShown =falseelse Space.UI.OpenFeedbackWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenBuyGoldWindow
void OpenBuyGoldWindow ()
Opens the Buy Gold window (white-label grid only)
Space.UI.OpenBuyGoldWindow()
--This script will make a button show/hide the Buy Gold Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideBuyGoldWindow() isShown =falseelse Space.UI.OpenBuyGoldWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideBuyGoldWindow
void HideBuyGoldWindow ()
Hides the Buy Gold window (white-label grid only)
Space.UI.HideBuyGoldWindow()
--This script will make a button show/hide the Buy Gold Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideBuyGoldWindow() isShown =falseelse Space.UI.OpenBuyGoldWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenChatWindow
void OpenChatWindow ()
Opens the Chat window (white-label grid only)
Space.UI.OpenChatWindow()
--This script will make a button show/hide the Chat Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideChatWindow() isShown =falseelse Space.UI.OpenChatWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideChatWindow
void HideChatWindow ()
Hides the Chat window (white-label grid only)
Space.UI.HideChatWindow()
--This script will make a button show/hide the Chat Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =trueOnClick=function()if isShown then Space.UI.HideChatWindow() isShown =falseelse Space.UI.OpenChatWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenRoomEditorWindow
void OpenRoomEditorWindow ()
Opens the Room Editor window (white-label grid only)
Space.UI.OpenRoomEditorWindow()
--This script will make a button show/hide the Room Editor Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideRoomEditorWindow() isShown =falseelse Space.UI.OpenRoomEditorWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
HideRoomEditorWindow
void HideRoomEditorWindow ()
Hides the Room Editor window (white-label grid only)
Space.UI.HideRoomEditorWindow()
--This script will make a button show/hide the Room Editor Window--(example: tools for user to customize UI)--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')local isShown =falseOnClick=function()if isShown then Space.UI.HideRoomEditorWindow() isShown =falseelse Space.UI.OpenRoomEditorWindow() isShown =trueendendtheButton.UIButton.OnClick(OnClick)
OpenDevicePicker
void OpenDevicePicker ()
Opens the Device Picker (white-label grid only)
Space.UI.OpenDevicePicker()
--This script will make a button open the Device Picker--[You need to add a UI Button as a reference in the Scripting Runtime Component]theButton = Space.Host.GetReference('TheButton')OnClick=function() Space.UI.OpenDevicePicker() endtheButton.UIButton.OnClick(OnClick)
OpenDeviceTester
void OpenDeviceTester ()
Opens the Device Tester (white-label grid only)
Space.UI.OpenDeviceTester()
Raycast
SUIRaycastResult Raycast ()
Shoots a UI Raycast and returns the result as SUIRayCastResult
RayCastResult = Space.UI.Raycast()
--This script will update a UIText element with the result of a UIRaycast whenever...--the player clicks on a Sinespace UI elementthisObject = Space.Host.ExecutingObjectuiText = Space.Host.GetReference("text").UIText --Add this object with UIText component as reference in Scripting RuntimeOnUpdate=function()if Space.Input.GetMouseDown(0) ==truethen result = Space.UI.Raycast() if result.IsValid then uiText = result.ToString()endendendthisObject.OnUpdate(OnUpdate)
Properties
ShowUI
bool ShowUIgetset
Show the User Interface
Space.UI.ShowUI =false
--This script will make a UI Toggle show/hide theUser Interface--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowUI=trueelse Space.UI.ShowUI=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowWorldUI
bool ShowWorldUIgetset
Show the World User Interface.
Space.UI.ShowWorldUI =false
--This script will make a UI Toggle show/hide the World UI--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowWorldUI=trueelse Space.UI.ShowWorldUI=falseendendtoggle.OnValueChanged(OnValueChanged)
MusicVolume
int MusicVolumegetset
Set/Get the Music volume (set: white-label grid only)
MusicVolume = Space.UI.MusicVolume
--This script will make moving a slider control the Music Volume--and also update a text field with the current Music Volume--(example: custom UI)--[You need to add the slider and text field as a reference]slider = Space.Host.GetReference("Slider").UISlidertextField = Space.Host.GetReference("Text Field").UITextOnValueChanged=function()Space.UI.MusicVolume = slider.NormalizedValue *100textField.Text = Space.UI.MusicVolumeendslider.OnValueChanged(OnValueChanged)
MasterVolume
int MasterVolumegetset
Set/Get the Master volume (set: white-label grid only)
MasterVolume = Space.UI.MasterVolume
--This script will make moving a slider control the Master Volume--and also update a text field with the current Master Volume--(example: custom UI)--[You need to add the slider and text field as a reference]slider = Space.Host.GetReference("Slider").UISlidertextField = Space.Host.GetReference("Text Field").UITextOnValueChanged=function()Space.UI.MasterVolume = slider.NormalizedValue *100textField.Text = Space.UI.MasterVolumeendslider.OnValueChanged(OnValueChanged)
SFXVolume
int SFXVolumegetset
Set/Get the SFX volume (set: white-label grid only)
SFXVolume = Space.UI.SFXVolume
--This script will make moving a slider control the SFX Volume--and also update a text field with the current SFX Volume--(example: custom UI)--[You need to add the slider and text field as a reference]slider = Space.Host.GetReference("Slider").UISlidertextField = Space.Host.GetReference("Text Field").UITextOnValueChanged=function()Space.UI.SFXVolume = slider.NormalizedValue *100textField.Text = Space.UI.SFXVolumeendslider.OnValueChanged(OnValueChanged)
UIVolume
int UIVolumegetset
Set/Get the UI volume (set: white-label grid only)
UIVolume = Space.UI.UIVolume
--This script will make moving a slider control the UI Volume--and also update a text field with the current UI Volume--[You need to add the slider and text field as a reference]slider = Space.Host.GetReference("Slider").UISlidertextField = Space.Host.GetReference("Text Field").UITextOnValueChanged=function()Space.UI.UIVolume = slider.NormalizedValue *100textField.Text = Space.UI.UIVolumeendslider.OnValueChanged(OnValueChanged)
VOIPVolume
int VOIPVolumegetset
Set/Get the VOIP volume (set: white-label grid only)
VOIPVolume = Space.UI.VOIPVolume
--This script will make moving a slider control the Voice Volume--and also update a text field with the current Voice Volume--[You need to add the slider and text field as a reference]slider = Space.Host.GetReference("Slider").UISlidertextField = Space.Host.GetReference("Text Field").UITextOnValueChanged=function()Space.UI.VOIPVolume = slider.NormalizedValue *100textField.Text = Space.UI.VOIPVolumeendslider.OnValueChanged(OnValueChanged)
ShowFriendsButton
bool ShowFriendsButtongetset
Show the Friends button. (white-label grid only)
Space.UI.ShowFriendsButton =false
--This script will make a UI Toggle show/hide the Friends Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowFriendsButton =trueelse Space.UI.ShowFriendsButton =falseendendtoggle.OnValueChanged(OnValueChanged)
ShowExploreButton
bool ShowExploreButtongetset
Show the Explore button. (white-label grid only)
Space.UI.ShowExploreButton =false
--This script will make a UI Toggle show/hide the Explore Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowExploreButton =trueelse Space.UI.ShowExploreButton =falseendendtoggle.OnValueChanged(OnValueChanged)
ShowQuestsButton
bool ShowQuestsButtongetset
Show the Quests button. (white-label grid only)
Space.UI.ShowQuestsButton =false
--This script will make a UI Toggle show/hide the Quests button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowQuestsButton=trueelse Space.UI.ShowQuestsButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowInventoryButton
bool ShowInventoryButtongetset
Show the Inventory button. (white-label grid only)
Space.UI.ShowInventoryButton =false
--This script will make a UI Toggle show/hide the Inventory Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowInventoryButton=trueelse Space.UI.ShowInventoryButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowOutfitButton
bool ShowOutfitButtongetset
Set to true to show the Outfit button. (white-label grid only)
Space.UI.ShowOutfitButton =false
--This script will make a UI Toggle show/hide the Outfit Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowOutfitButton=trueelse Space.UI.ShowOutfitButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowShopButton
bool ShowShopButtongetset
Show the Shop button. (white-label grid only)
Space.UI.ShowShopButton =false
--This script will make a UI Toggle show/hide the Shop Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowShopButton=trueelse Space.UI.ShowShopButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowAuctionButton
bool ShowAuctionButtongetset
Show the Auction button. (white-label grid only)
Space.UI.ShowAuctionButton =false
--This script will make a UI Toggle show/hide the Auction Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowAuctionButton =trueelse Space.UI.ShowAuctionButton =falseendendtoggle.OnValueChanged(OnValueChanged)
ShowSnapshotButton
bool ShowSnapshotButtongetset
Show the Snapshot button.(white-label grid only)
Space.UI.ShowSnapshotButton =false
--This script will make a UI Toggle show/hide the Snapshot Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowSnapshotButton=trueelse Space.UI.ShowSnapshotButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowHelpButton
bool ShowHelpButtongetset
Show the Help button. (white-label grid only)
Space.UI.ShowHelpButton =false
--This script will make a UI Toggle show/hide the Help Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowHelpButton=trueelse Space.UI.ShowHelpButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowCurrencyButton
bool ShowCurrencyButtongetset
Show the Currency button. (white-label grid only)
Space.UI.ShowCurrencyButton =false
--This script will make a UI Toggle show/hide the Currency Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowCurrencyButton=trueelse Space.UI.ShowCurrencyButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowGoldAndBuyButton
bool ShowGoldAndBuyButtongetset
Show the Gold and Buy button. (white-label grid only)
Space.UI.ShowGoldAndBuyButton =false
--This script will make a UI Toggle show/hide the Gold and Buy button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowGoldAndBuyButton=trueelse Space.UI.ShowGoldAndBuyButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowChat
bool ShowChatgetset
Show the Chat. (white-label grid only)
Space.UI.ShowChat =false
--This script will make a UI Toggle show/hide the Chat--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowChat=trueelse Space.UI.ShowChat=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowMiniMap
bool ShowMiniMapgetset
Set to true to show the Minimap. (white-label grid only)
Space.UI.ShowMiniMap =false
--This script will make a UI Toggle show/hide the Minimap--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowMiniMap=trueelse Space.UI.ShowMiniMap=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowHotBar
bool ShowHotBargetset
Show the Hot Bar. (white-label grid only)
Space.UI.ShowHotBar =false
--This script will make a UI Toggle show/hide the Hot Bar--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowHotBar=trueelse Space.UI.ShowHotBar=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowEventsButton
bool ShowEventsButtongetset
Show the Events button. (white-label grid only)
Space.UI.ShowEventsButton =false
--This script will make a UI Toggle show/hide the Events button--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowEventsButton=trueelse Space.UI.ShowEventsButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowHomeButton
bool ShowHomeButtongetset
Show the Home button. (white-label grid only)
Space.UI.ShowHomeButton =false
--This script will make a UI Toggle show/hide the Home Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowHomeButton=trueelse Space.UI.ShowHomeButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowActivityPanel
bool ShowActivityPanelgetset
Show the Activity Panel. (white-label grid only)
Space.UI.ShowActivityPanel =false
--This script will make a UI Toggle show/hide the Activity Panel--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowActivityPanel=trueelse Space.UI.ShowActivityPanel=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowProfileImage
bool ShowProfileImagegetset
Show the Profile Image. (white-label grid only)
Space.UI.ShowProfileImage =false
--This script will make a UI Toggle show/hide the Profile Image--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowProfileImage=trueelse Space.UI.ShowProfileImage=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowRightButtonGroup
bool ShowRightButtonGroupgetset
Show the Right Button Group. (white-label grid only)
Space.UI.ShowRightButtonGroup =false
--This script will make a UI Toggle show/hide the Right Button Group--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowRightButtonGroup=trueelse Space.UI.ShowRightButtonGroup=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowRoomInfoOption
bool ShowRoomInfoOptiongetset
Show the Room Info Option. (white-label grid only)
Space.UI.ShowRoomInfoOption =false
--This script will make a UI Toggle show/hide the Room Info Option--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowRoomInfoOption=trueelse Space.UI.ShowRoomInfoOption=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowSearch
bool ShowSearchgetset
Show the Search bar. (white-label grid only)
Space.UI.ShowSearch =false
--This script will make a UI Toggle show/hide the Search Bar--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowSearch=trueelse Space.UI.ShowSearch=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowMailButton
bool ShowMailButtongetset
Show the Mail button. (white-label grid only)
Space.UI.ShowMailButton =false
--This script will make a UI Toggle show/hide the Mail Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowMailButton =trueelse Space.UI.ShowMailButton =falseendendtoggle.OnValueChanged(OnValueChanged)
ShowNotificationButton
bool ShowNotificationButtongetset
Show the Notification button. (white-label grid only)
Space.UI.ShowNotificationButton =false
--This script will make a UI Toggle show/hide the Notification Button--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowNotificationButton=trueelse Space.UI.ShowNotificationButton=falseendendtoggle.OnValueChanged(OnValueChanged)
ShowClock
bool ShowClockgetset
Show the clock. (white-label grid only)
Space.UI.ShowClock =false
--This script will make a UI Toggle show/hide the Clock--(example: tools for user to customize UI)--[You need to add an object with UI Toggle as a reference (scripting runtime)]toggle = Space.Host.GetReference("Toggle").UIToggleOnValueChanged=function()if toggle.IsOn then Space.UI.ShowClock=trueelse Space.UI.ShowClock=falseendendtoggle.OnValueChanged(OnValueChanged)