Skip to content
YYBartT edited this page Jan 18, 2026 · 1 revision

Score

Functions

This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.



Back To Top

elements_score_create_score

Elements Operation: createScore

This function posts a single score for the currently logged-in profile. Conceptually, this is creating a new resource, however the server may opt to overwrite the existing identifier if it sees fit.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Callback Function.


Syntax:

elements_score_create_score(_leaderboard_name_or_id, _body=undefined, _callback=undefined)
Argument Type Description
_leaderboard_name_or_id String The name or id of the leaderboard.
_body ElementsScore The body to be included in the HTTP request.
_callback Function The function - with signature (status, data, request) - that will be executed upon request completion.



Returns:

N/A


Triggers:

Callback Function

Key Type Description
_status Real
_data ElementsScore
_request ElementsRequest


Clone this wiki locally