RedM Natives

PROFILER_IS_RECORDING

Returns true if the profiler is active.

Hash0xF8B7D7BB
Runtime nameProfilerIsRecording
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

BOOL PROFILER_IS_RECORDING();

Returns BOOL — True or false.

Description

Cfx.re native reference

Returns true if the profiler is active.

Usage

Lua
local retval = ProfilerIsRecording()

-- always works, by hash
local retval = Citizen.InvokeNative(0xf8b7d7bb, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = ProfilerIsRecording();

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

Sources

Cfx.re native reference

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