RedM Natives

GET_CONSOLE_BUFFER

Returns the current console output buffer.

Hash0xE57429FA
Runtime nameGetConsoleBuffer
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

char* GET_CONSOLE_BUFFER();

Returns char* — The most recent game console output, as a string.

Description

Cfx.re native reference

Returns the current console output buffer.

Usage

Lua
local retval = GetConsoleBuffer()

-- always works, by hash
local retval = Citizen.InvokeNative(0xe57429fa, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetConsoleBuffer();

// by hash
const retval = Citizen.invokeNative('0xe57429fa', Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0xe57429fa);

Sources

Cfx.re native reference

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