How to use the Ranking API in Game
Hyra has created a Lua wrapper for interacting with the Hyra Ranking API from in your game, all you need to do is require it.
This function is a callback based asynchronous request to the Hyra API. You can listen to if it succeeds or fails, by binding onto the callback.
local ranking = require(14743387756)
local workspaceId = "abc123" -- Your Workspace ID
local callback = ranking.SetRank(token, workspaceId, userId, groupId, rank)
if callback.success then
-- Ranked successfully
else
-- Handle failure
print(callback.message)
end
This function is a callback based asynchronous request to the Hyra API. You can listen to if it succeeds or fails, by binding onto the callback.
Updated on: 16/10/2023
Thank you!