RedM Natives

_CREATE_MGM_SYSTEM

Returns mgmHandle

Hash0xA1300DE03E5D1973
Runtime nameCreateMgmSystem
NamespaceANIMSCENE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _CREATE_MGM_SYSTEM(const char* mgmFilename);

Parameters

NameTypeDescription
mgmFilenameconst char*—

Returns int

Description

Returns mgmHandle

Usage

Lua
local retval = CreateMgmSystem(mgmFilename)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA1300DE03E5D1973, mgmFilename, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreateMgmSystem(mgmFilename);

// by hash
const retval = Citizen.invokeNative('0xA1300DE03E5D1973', mgmFilename, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xA1300DE03E5D1973, mgmFilename);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB

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