The Lab
MISSIONDATA native

MISSIONDATA_GET_CATAGORY

returns Hash1 parambuild 1232

Returns the category hash of the mission missionId. The misspelling is part of the native's official name.

Signature

C
Hash MISSIONDATA_GET_CATAGORY(Hash missionId); // 0x57E798B65C45EE17 b1232

Parameters

#NameType
1missionIdHash

Facts

Facts about MISSIONDATA_GET_CATAGORY
Name
MISSIONDATA_GET_CATAGORY
Hash
0x57E798B65C45EE17
Namespace
Returns
Hash
Game build
1232

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x57E798B65C45EE17, -- MISSIONDATA_GET_CATAGORY
  GetHashKey("name"), -- Hash missionId
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x57E798B65C45EE17", // MISSIONDATA_GET_CATAGORY
  GetHashKey("name"), // Hash missionId
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x57E798B65C45EE17, // MISSIONDATA_GET_CATAGORY
  (uint)API.GetHashKey("name") // Hash missionId
);
All MISSIONDATA natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.