StatsClientBlocked

leaderboards2WriteDataForEventType

LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE0xC980E62E33DF1D5C

The GTA V native LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE of the STATS namespace, as LS:MP client scripts call it: the global function leaderboards2WriteDataForEventType, in JavaScript and in Lua.

SignatureJavaScript
leaderboards2WriteDataForEventType(p0: null, p1: null): boolean
SignatureLua
leaderboards2WriteDataForEventType(p0: nil, p1: nil): boolean
✕
Blocked for scripts: Rockstar accounts and commerce

Resources do not touch Rockstar accounts, Social Club data, GTA$ or the game's online shops. Keep your own economy and profiles on your server, with storage.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Stats STATS
In the game
BOOL LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE(Any* p0, Any* p1)
Hash
0xC980E62E33DF1D5C

Open in the interactive natives reference