RedM Natives

MISSIONDATA_SET_HIGH_SCORE

Hash0x3A04F0169DA87A9D
Runtime nameMissiondataSetHighScore
NamespaceMISSIONDATA
SideClient
NameOfficial
Docs
Since build1207

Signature

void MISSIONDATA_SET_HIGH_SCORE(Hash missionId, int score);

Parameters

NameTypeDescription
missionIdHash—
scoreint—

Returns void

Usage

Lua
MissiondataSetHighScore(missionId, score)

-- always works, by hash
Citizen.InvokeNative(0x3A04F0169DA87A9D, missionId, score)
JavaScript and C#
JavaScript
MissiondataSetHighScore(missionId, score);

// by hash
Citizen.invokeNative('0x3A04F0169DA87A9D', missionId, score);
C#
Function.Call((Hash)0x3A04F0169DA87A9D, missionId, score);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.