Skip to content

Get Started

This page demonstrates all of the features Skyline's scripting API provides.

WARNING

PLEASE BE CAREFUL AS THESE SCRIPTS MIGHT NOT BE SAFE!

Allowing the Unsafe Environment

In-order to allow access to custom scripts, you must go to the folder (skyline.rip/config/config.json) and edit the AllowUnsafe value to true

Example

json
{
    "AllowUnsafe": true
}

Library

Skyline provides you with our whole entire UI Library.

Example

lua
-- Skyline is defined in the global environment.
local thememanager = Skyline.theme
local savemanager = Skyline.save
local ui = Skyline.main

Another example of this library is provided here

Accessing tabs

After defining our locals (themes, saves, ui) we will add a feature.

INFO

There is 6 tabs. legit, rage, movement, visuals, misc, settings.

Example

lua
...

getgenv().SkylineScript = {
    Game = 'dahood',
}

local tab = Skyline.client.misc:AddLeftGroupbox('Example')

tab:AddToggle('random_toggle', {
	Text = 'Toggle',
	Tooltip = 'No tooltip avaliable',
	DisabledTooltip = 'disabled module',
	Default = true,
	Disabled = false,
	Visible = true,
	Risky = false,
	Callback = function(val) end
})

Finishing

Save the file (CTRL + S) then we will put it in our executor's workspace.

INFO

If you're using AWP.GG, your executor's workspace's path is %LOCALAPPDATA%/ui/workspace.

Once you're in your executor's workspace, put your script in skyline.rip/scripts.

Loading the Script

Go to the settings tab inside of the script. If the Lua Scripts section is not visible, make sure to edit your config file.

If you haven't already refreshed the list after adding the script, please press Refresh.

Find your script inside the list, you can use the searchable list, found in the menu. Then press 'Load'. Find your script in the tab and enjoy.

Functions

This isn't finished, check back later.