RedM Natives

MISSIONDATA_GET_CATAGORY

Hash0x57E798B65C45EE17
Runtime nameMissiondataGetCatagory
NamespaceMISSIONDATA
SideClient
NameOfficial
Docs
Since build1232

Signature

Hash MISSIONDATA_GET_CATAGORY(Hash missionId);

Parameters

NameTypeDescription
missionIdHash—

Returns Hash

Usage

Lua
local retval = MissiondataGetCatagory(missionId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x57E798B65C45EE17, missionId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = MissiondataGetCatagory(missionId);

// by hash
const retval = Citizen.invokeNative('0x57E798B65C45EE17', missionId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x57E798B65C45EE17, 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

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