Opens the Appearance Editor (Outfit)
Space.UI.OpenAppearanceEditor()
Shows a notification
Space.UI.AddNotification('Warning','This is a notification')
Adds a "Global Action Button" which is a custom button you add to the UI that calls an action of your choice then clears after being clicked
gbClick = function() Space.Log("global action button pressed") end Space.UI.AddGlobalActionButton("The Button","The Tooltip", gbClick)
Clears a previously added Global Action Button 'button'
Space.UI.ClearGlobalActionButton("The Button")
Shows given location
Space.UI.ShowLocation("the reason", Vector.New(5,1,0))
Shows a path to given location
Space.UI.ShowPathToLocation("the reason", Vector.New(5,1,0))
Opens the Quests window
Space.UI.OpenQuestsWindow()
Hides the Quests window
Space.UI.HideQuestsWindow()
Opens the Settings window
Space.UI.OpenSettingsWindow()
Hides the Settings window
Space.UI.HideSettingsWindow()
Opens the Friends window
Space.UI.OpenFriendsWindow()
Hides the Friends window
Space.UI.HideFriendsWindow()
Opens the Explore window
Space.UI.OpenExploreWindow()
Hides the Explore window
Space.UI.HideExploreWindow()
Opens the Events window
Space.UI.OpenEventsWindow()
Hides the Events window
Space.UI.HideEventsWindow()
Opens the Home window
Space.UI.OpenHomeWindow()
Hides the Home window
Space.UI.HideHomeWindow()
Opens the Inventory window
Space.UI.OpenInventoryWindow()
Hides the Inventory window
Space.UI.HideInventoryWindow()
Opens the Outfit window
Space.UI.OpenOutfitWindow()
Hides the Outfit window
Space.UI.HideOutfitWindow()
Opens the Shop window
Space.UI.OpenShopWindow()
Hides the Shop window
Space.UI.HideShopWindow()
Opens the Snapshot window
Space.UI.OpenSnapshotWindow()
Hides the Snapshot window
Space.UI.HideSnapshotWindow()
Opens the Help window
Space.UI.OpenHelpWindow()
Hides the Help window
Space.UI.HideHelpWindow()
Opens the Profile window
Space.UI.OpenProfileWin()
Hides the Profile window
Space.UI.HideProfileWin()
Opens the Upgrade Account window
Space.UI.OpenUpgradeAccountWindow()
Hides the Upgrade Account window
Space.UI.HideUpgradeAccountWindow()
Opens the Region Info window
Space.UI.OpenRegionInfoWindow()
Hides the Region Info window
Space.UI.HideRegionInfoWindow()
Opens the Exit window
Space.UI.OpenExitWindow()
Hides the Exit window
Space.UI.HideExitWindow()
Opens the Mail window
Space.UI.OpenMailWindow()
Hides the Mail window
Space.UI.HideMailWindow()
Opens the Buy Gold window
Space.UI.OpenBuyGoldWindow()
Hides the Buy Gold window
Space.UI.HideBuyGoldWindow()
Opens the Chat window
Space.UI.OpenChatWindow()
Hides the Chat window
Space.UI.HideChatWindow()
Opens the Room Editor window
Space.UI.OpenRoomEditorWindow()
Hides the Room Editor window
Space.UI.HideRoomEditorWindow()
Opens the Device Picker
Space.UI.OpenDevicePicker()
Shoots a UI Raycast and returns the result as SUIRayCastResult
RayCastResult= Space.UI.Raycast()
Show the Auction button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowAuctionButton = true else Space.UI.ShowAuctionButton = false end end toggle.OnValueChanged(OnValueChanged)
Show the Chat
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowChat= true else Space.UI.ShowChat= false end end toggle.OnValueChanged(OnValueChanged)
Show the Currency button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowCurrencyButton= true else Space.UI.ShowCurrencyButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Explore button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowExploreButton = true else Space.UI.ShowExploreButton = false end end toggle.OnValueChanged(OnValueChanged)
Show the Friends button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowFriendsButton = true else Space.UI.ShowFriendsButton = false end end toggle.OnValueChanged(OnValueChanged)
Show the Help button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowHelpButton= true else Space.UI.ShowHelpButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Home button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowHomeButton= true else Space.UI.ShowHomeButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Hot Bar
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowHotBar= true else Space.UI.ShowHotBar= false end end toggle.OnValueChanged(OnValueChanged)
Show the Inventory button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowInventoryButton= true else Space.UI.ShowInventoryButton= false end end toggle.OnValueChanged(OnValueChanged)
Set to true to show the Minimap
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowMiniMap= true else Space.UI.ShowMiniMap= false end end toggle.OnValueChanged(OnValueChanged)
Set to true to show the Outfit button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowOutfitButton= true else Space.UI.ShowOutfitButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Quests button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowQuestsButton= true else Space.UI.ShowQuestsButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Shop button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowShopButton= true else Space.UI.ShowShopButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Snapshot button
Space.UI.ShowSnapshotButton = false
Show the User Interface
Space.UI.ShowUI = false
--This script will make a UI Toggle show/hide the User Interface --(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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowUI= true else Space.UI.ShowUI= false end end toggle.OnValueChanged(OnValueChanged)
Show the World User Interface
Space.UI.ShowUI = false
Set/Get the Music volume
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").UISlider textField = Space.Host.GetReference("Text Field").UIText OnValueChanged = function() Space.UI.MusicVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.MusicVolume end slider.OnValueChanged(OnValueChanged)
Set/Get the Master volume
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").UISlider textField = Space.Host.GetReference("Text Field").UIText OnValueChanged = function() Space.UI.MasterVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.MasterVolume end slider.OnValueChanged(OnValueChanged)
Set/Get the SFX volume
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").UISlider textField = Space.Host.GetReference("Text Field").UIText OnValueChanged = function() Space.UI.SFXVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.SFXVolume end slider.OnValueChanged(OnValueChanged)
Set/Get the UI volume
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 --(example: custom UI) --[You need to add the slider and text field as a reference] slider = Space.Host.GetReference("Slider").UISlider textField = Space.Host.GetReference("Text Field").UIText OnValueChanged = function() Space.UI.UIVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.UIVolume end slider.OnValueChanged(OnValueChanged)
Set/Get the VOIP volume
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 --(example: custom UI) --[You need to add the slider and text field as a reference] slider = Space.Host.GetReference("Slider").UISlider textField = Space.Host.GetReference("Text Field").UIText OnValueChanged = function() Space.UI.VOIPVolume = slider.NormalizedValue * 100 textField.Text = Space.UI.VOIPVolume end slider.OnValueChanged(OnValueChanged)
Show the Events button
Space.UI.ShowEventsButton= false
--This script will make a UI Toggle show/hide the Events 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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowEventsButton= true else Space.UI.ShowEventsButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the Gold and Buy button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowGoldAndBuyButton= true else Space.UI.ShowGoldAndBuyButton= false end end toggle.OnValueChanged(OnValueChanged)
Show the clock
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowClock= true else Space.UI.ShowClock= false end end toggle.OnValueChanged(OnValueChanged)
Show the Activity Panel
Space.UI.ShowActivityPanel= false
--This script will make a UI Toggle show/hide the Activity Panel --(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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowActivityPanel= true else Space.UI.ShowActivityPanel= false end end toggle.OnValueChanged(OnValueChanged)
Show the Profile Image
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowProfileImage= true else Space.UI.ShowProfileImage= false end end toggle.OnValueChanged(OnValueChanged)
Show the Button group on the right
Space.UI.ShowRightButtonGroup= false
Show the Room Info Option
Space.UI.ShowRoomInfoOption= false
Show the Search bar
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowSearch= true else Space.UI.ShowSearch= false end end toggle.OnValueChanged(OnValueChanged)
Show the Mail button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowMailButton = true else Space.UI.ShowMailButton = false end end toggle.OnValueChanged(OnValueChanged)
Show the Notification button
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").UIToggle OnValueChanged = function() if toggle.IsOn then Space.UI.ShowNotificationButton= true else Space.UI.ShowNotificationButton= false end end toggle.OnValueChanged(OnValueChanged)
|