Key System
Adding the key system
Key System
The Key System is created in :CreateWindow()
Available Services
At the moment, there are only:
More services will be soon.
local Window = WindUI:CreateWindow({
-- ...
KeySystem = {
Note = "Example Key System. With platoboost, etc.",
API = {
{ -- PlatoBoost
--[[ Here you can write your title, description, and icon --]]
Title = "Platoboost",-- optional . you can remove it
Desc = "Click to copy.", -- optional . you can remove it
Icon = "rbxassetid://", -- optional . you can remove it
Type = "platoboost", -- type
ServiceId = 1234, -- service id
Secret = "platoboost-secret", -- platoboost secret
},
{ -- Panda development
Type = "pandadevelopment", -- type
ServiceId = "myServiceId", -- service id
},
},
},
})
Add your service.
You can also add your own services if you can't wait for the new update.
-- ↓ Change this to your service (like `luarmor`, `platoboost`, `keyguardian`)
WindUI.Services.mysuperservicetogetkey = {
Name = "My Super Service",
Icon = "droplet", -- <-- lucide or rbxassetid or raw link to img
Args = { "ServiceId", "SuperId" }, -- <- \
-- |
New = function(ServiceId, SuperId) -- <------ | Args!!!!!!!!!!!!
function validateKey(key) -- <--- this too important!!!
-- your function to validate key
-- see examples at src/utils/ in WindUI Repo
if not key then
return false, "Key is invalid!"
end
return true, "Key is valid!"
end
function copyLink()
return setclipboard("link to key system service.")
end
return {
--↓↓ do not change this!!
Verify = validateKey, -- <-- important!!!
Copy = copyLink -- <-- important!!!
}
end
}
Use your service.
Now your can use your service.
local Window = WindUI:CreateWindow({
-- ...
KeySystem = {
Note = "...",
API = {
{
Type = "mysuperservicetogetkey",
ServiceId = 1234",
SuperId = 1234",
},
},
},
})
Yes, I know it's difficult to understand.