{"hash":"0xE8EAA18B","ns":"CFX","name":"GET_GAME_NAME","slug":"GET_GAME_NAME","official":true,"named":true,"luaName":"GetGameName","game":"cfx","apiset":"shared","returnType":"char*","params":[],"returnsDescription":"The game the script environment is running in.","summary":"Returns the current game being executed.","descriptions":[{"source":"cfx","format":"md","body":"Returns the current game being executed.\n\nPossible values:\n\n| Return value | Meaning                        |\n| ------------ | ------------------------------ |\n| `fxserver`   | Server-side code ('Duplicity') |\n| `fivem`      | FiveM for GTA V                |\n| `libertym`   | LibertyM for GTA IV            |\n| `redm`       | RedM for Red Dead Redemption 2 |"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_GAME_NAME","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_GAME_NAME.md","snippets":{"lua":"local retval = GetGameName()","luaInvoke":"local retval = Citizen.InvokeNative(0xe8eaa18b, Citizen.ResultAsString())","js":"const retval = GetGameName();","jsInvoke":"const retval = Citizen.invokeNative('0xe8eaa18b', Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"string retval = Function.Call<string>((Hash)0xe8eaa18b);","notes":[]}}