RedM Natives

SET_GAME_TYPE

Hash0xF90B7469
Runtime nameSetGameType
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_GAME_TYPE(char* gametypeName);

Parameters

NameTypeDescription
gametypeNamechar*—

Returns void

Usage

Lua
SetGameType(gametypeName)

-- always works, by hash
Citizen.InvokeNative(0xf90b7469, gametypeName)
JavaScript and C#
JavaScript
SetGameType(gametypeName);

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

Sources

Cfx.re native reference

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