REGISTER_CONSOLE_LISTENER
Registers a listener for console output messages.
Signature
void REGISTER_CONSOLE_LISTENER(func listener);Parameters
| Name | Type | Description |
|---|---|---|
listener | func | A function of |
Returns void
Description
Registers a listener for console output messages.
Usage
RegisterConsoleListener(listener)
-- always works, by hash
Citizen.InvokeNative(0x281b5448, listener)JavaScript and C#
RegisterConsoleListener(listener);
// by hash
Citizen.invokeNative('0x281b5448', listener);Function.Call((Hash)0x281b5448, listener);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.