# MISSIONDATA::MISSIONDATA_GET_HIGH_SCORE

- **Hash:** `0x9AABABF8313C3516`
- **Namespace:** MISSIONDATA
- **Runtime name (Lua/JS):** `MissiondataGetHighScore`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MISSIONDATA/MISSIONDATA_GET_HIGH_SCORE

## Signature

```c
int MISSIONDATA_GET_HIGH_SCORE(Hash missionId);
```

## Parameters

- `missionId` (`Hash`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = MissiondataGetHighScore(missionId)

-- always available, by hash
local retval = Citizen.InvokeNative(0x9AABABF8313C3516, missionId, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = MissiondataGetHighScore(missionId);

// by hash
const retval = Citizen.invokeNative('0x9AABABF8313C3516', missionId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x9AABABF8313C3516, missionId);
```

- 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.*
