Skip to content

Instantly share code, notes, and snippets.

@novabyte
Created November 30, 2017 07:44
Show Gist options
  • Save novabyte/5e51912301a297c5a6dcdbe68a6fd5c2 to your computer and use it in GitHub Desktop.
Save novabyte/5e51912301a297c5a6dcdbe68a6fd5c2 to your computer and use it in GitHub Desktop.
An example of a leaderboard setup with Nakama server.
local nk = require("nakama")
-- use any string as an ID
local id = "8c79b85e-d5a1-11e7-87cc-7bd5871ea4a4"
local reset = nil -- no reset
local metadata = {
}
nk.leaderboard_create(id, "desc", reset, metadata, false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment