GET_CONSOLE_BUFFER
Returns the current console output buffer.
Signature
char* GET_CONSOLE_BUFFER();Returns char* — The most recent game console output, as a string.
Description
Returns the current console output buffer.
Usage
local retval = GetConsoleBuffer()
-- always works, by hash
local retval = Citizen.InvokeNative(0xe57429fa, Citizen.ResultAsString())JavaScript and C#
const retval = GetConsoleBuffer();
// by hash
const retval = Citizen.invokeNative('0xe57429fa', Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0xe57429fa);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.