FunctionsVariables Functions
$userVarRank
Return user's rank returned by $userleaderboard for a single user
Usage
$uservarRank[Variable name;Sorting Type;User ID (optional)]Sorting Type
highest-first(Default): Uses the sorting type that displays the list from the highest value to the lowest.lowest-first: Uses the sorting type that displays the list from the lowest value to the highest.descDeprecated: Legacy alias forlowest-first.ascDeprecated: Legacy alias forhighest-first.
Example:
Member
9/5/2026
!!exec Top 5
$userLeaderboard[money;highest-first;{top}. {username} - {value};5]
Custom Command
APP
9/5/2026
Top 5
- Member - 350
- Rake - 201
- Zero - 121
- Red - 53
- Azz - 22
Member
9/5/2026
!!exec Your rank is $userVarRank[money]
Custom Command
APP
9/5/2026
Your rank is 1
What if the user does not have the variable?
If the specified user does not have the variable defined, $userVarRank will return undefined.
Related Functions
Check out: $userLeaderboard
Check out: $setUserVar
Check out: $getUserVar
Check out: $deleteUserVar
Check out: $resetUserVar