# Documentation

## Loadstring

```lua
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/preztel/AzureLibrary/master/uilib.lua", true))()
```

## Tab

After u added the main Library Code you will have to create a Tab.

```lua
local Library = loadstring(game:HttpGet("https://pastebin.com/raw/2xDTKdpV", true))()

local AimbotTab = Library:CreateTab("Aimbot", "This is where you modify the Aimbot", true) 
--true means darkmode is enabled and false means its disabled
--if you leave it empty you have a custom theme.
```

<div align="left"><img src="https://2149550582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8u7ma8cFA82xUPtanI%2F-M8vea4dhQzSv9BEPDf_%2F-M9-EcuorSr-HVoz148m%2FSkjermbilde.JPG?alt=media&#x26;token=1ccd99aa-a66c-410c-9bb9-0316d3068aba" alt="This is what the Ui will look like so far."></div>

## Toggle

When you added the Tab you can add multiple things into it, such as a toggle.

```lua
local Library = loadstring(game:HttpGet("https://pastebin.com/raw/2xDTKdpV", true))()

local AimbotTab = Library:CreateTab("Aimbot", "This is where you modify the Aimbot")

AimbotTab:CreateToggle("Enable Aimbot", function(arg) --the (arg) is if the checkbox is toggled or not
    if arg then
        print("Aimbot is now : Enabled")
    else
        print("Aimbot is now : Disabled")
    end
end)
```

<div align="left"><img src="https://2149550582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8u7ma8cFA82xUPtanI%2F-M8vea4dhQzSv9BEPDf_%2F-M9-FA7CdSN4_p3B39u5%2FSkjermbilde.JPG?alt=media&#x26;token=d9c7ddbf-f93d-4977-bd7b-e306dc2148cb" alt="When you add the toggle it will look like this."></div>

## Slider

You can also add a slider&#x20;

```lua
local Library = loadstring(game:HttpGet("https://pastebin.com/raw/2xDTKdpV", true))()

local AimbotTab = Library:CreateTab("Aimbot", "This is where you modify the Aimbot")

AimbotTab:CreateSlider("Fov Radius", 0, 600, function(arg) --the (arg) is the sliders value
    print("Fov Radius is set to:", arg)
end)
```

<div align="left"><img src="https://2149550582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8u7ma8cFA82xUPtanI%2F-M8vea4dhQzSv9BEPDf_%2F-M9-Fgmito2wUwxj-55H%2FSkjermbilde.JPG?alt=media&#x26;token=6c65d6c9-64d7-4cd4-b2a9-44e341e31b7a" alt="This is what the slider will look like."></div>

## DropDown

You can also add a dropdown. A dropdown is a list of options you can choose.

```lua
local Library = loadstring(game:HttpGet("https://pastebin.com/raw/2xDTKdpV", true))()

local AimbotTab = Library:CreateTab("Aimbot", "This is where you modify the Aimbot")

AimbotTab:CreateDropDown("Aimbot Part", {"Head", "Torso"}, function(arg) --the (arg) is the option you choose 
    if arg == "Head" then
        print("HEahshoot")
    elseif arg == "Torso" then
        print("trrrrso")
    end
end)
```

<div align="left"><img src="https://2149550582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8u7ma8cFA82xUPtanI%2F-M9-Fx0xwmoSp0aj8qY9%2F-M9-G-5lb5XlU6NgsPiR%2FSkjermbilde.JPG?alt=media&#x26;token=03ad1bfb-8da7-4363-ab91-b4559ca345de" alt="This is what the dropdown will look like when its opened."></div>

<div align="left"><img src="https://2149550582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8u7ma8cFA82xUPtanI%2F-M9-Fx0xwmoSp0aj8qY9%2F-M9-GCJOC-x6oy-XLRRF%2FSkjermbilde.JPG?alt=media&#x26;token=a71fa4e9-877f-49e3-a7f2-7c4346ea5bfe" alt="What it looks like when its not opened."></div>

## Button

A button describes itself, it's a button you can click (duh)

```lua
local Library = loadstring(game:HttpGet("https://pastebin.com/raw/2xDTKdpV", true))()

local AimbotTab = Library:CreateTab("Aimbot", "This is where you modify the Aimbot")

AimbotTab:CreateButton("Inf Jump", function() --you dont need "arg" for a button
    print("Inf Jump is now permanently on.")
end)
```

<div align="left"><img src="https://2149550582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8u7ma8cFA82xUPtanI%2F-M9-Fx0xwmoSp0aj8qY9%2F-M9-GT6yT5DOZ86RYnNo%2FSkjermbilde.JPG?alt=media&#x26;token=2f3602f2-4677-467f-a364-f16fc5aff11a" alt="And this is how the button looks like."></div>

```lua
local Library = loadstring(game:HttpGet("https://pastebin.com/raw/2xDTKdpV", true))()

local AimbotTab = Library:CreateTab("Aimbot", "This is where you modify the Aimbot")

AimbotTab:CreateTextbox("Whitelist Player", function(arg) --arg is what the text is inside the textbox
    print("Whitelisted: " .. arg)
end)
```

That's it! It's not the best documentation but it's kinda helpful ig.

There will ofc be more updated n shit like darkmode/lightmode gui toggle bing and colorpickers
