Advertisement
hacimiks

Playstation Lib

Apr 7th, 2024 (edited)
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. local Link = loadstring(game:HttpGet('https://raw.githubusercontent.com/aoki0x/UI-Libraries/main/Playstation%20Ui%20Library/source.lua'))()
  2.  
  3. local Win = Link:CreateWindow('HINDI KO ALAM','Yeah Info') -- :CreateWindow(Title,Info) Note: info no space
  4.  
  5. local Tab = Win:addPage('Tab', 2, true, 6) -- :addPage(Title, Scoll Size, Visible, elementspacing)
  6. -- Note: Dont have update function
  7.  
  8.  
  9. -- Label
  10. Tab:addLabel('This a Label', 'Label info') -- :addLabel(Title, Info)
  11.  
  12. -- Button
  13. Tab:addButton('This a button', function() -- :addButton(Title, callback)
  14.     print('Clicked Button')
  15. end)
  16.  
  17. -- Toggles
  18. Tab:addToggle('Toggle', function(value) -- :addToggle(Title, callback)
  19.     if value then -- if true then
  20.         print('True') -- print true
  21.     else -- else false
  22.         print('False') -- print false
  23.     end
  24. end)
  25.  
  26. -- Slider
  27. Tab:addSlider('Slider', 1,100, function(value) -- :addSlider(Title, min, max, callback)
  28.     print(value)
  29. end)
  30.  
  31. -- TextBox
  32. Tab:addTextBox('Textbox', 'Textbox Info', function(text) -- :addTextBox(Title, Info)
  33.     print(text)
  34. end)
  35.  
  36. -- Dropdown
  37. Tab:addDropdown('This is DropDown', {'1', '2', '3', '4', '5'}, 4, function(options) -- :addDropdown(Title, {'List', 'Yeah'}, Scroll Size, callback)
  38.     print(options)
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement