RedM Natives

SET_MAP_NAME

Hash0xB7BA82DC
Runtime nameSetMapName
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_MAP_NAME(char* mapName);

Parameters

NameTypeDescription
mapNamechar*—

Returns void

Usage

Lua
SetMapName(mapName)

-- always works, by hash
Citizen.InvokeNative(0xb7ba82dc, mapName)
JavaScript and C#
JavaScript
SetMapName(mapName);

// by hash
Citizen.invokeNative('0xb7ba82dc', mapName);
C#
Function.Call((Hash)0xb7ba82dc, mapName);

Sources

Cfx.re native reference

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