darraghd493

Lucide Icons Wrapper

Oct 29th, 2025 (edited)
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | Source Code | 0 0
  1. --[[
  2.     Lucide Icons Wrapper by darraghd493
  3.  
  4.     A simple wrapper for accessing icons from Lucide Icons Picker v2.
  5. ]]
  6.  
  7. local ASSETS_URL = "https://pastebin.com/raw/reKydqu6"
  8.  
  9. local success, icons = pcall(function()
  10.     return loadstring(game:HttpGet(ASSETS_URL))()
  11. end)
  12. if success then
  13.     if not icons["assets"] then
  14.         error("Invalid library format from '" .. ASSETS_URL .. "'")
  15.         return nil
  16.     end
  17.     return function(name: string)
  18.         return icons["assets"][string.lower(name)] or icons["assets"]["lucide-" .. string.lower(name)] or icons["assets"]["lucide-alert-triangle"]
  19.     end
  20. else
  21.     error("Failed to load library '" .. ASSETS_URL .. "': " .. tostring(icons))
  22.     return nil
  23. end
  24.  
Advertisement
Add Comment
Please, Sign In to add comment