RedM Natives

PROFILER_ENTER_SCOPE

Scope entry for profiler.

Hash0xC795A4A9
Runtime nameProfilerEnterScope
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

void PROFILER_ENTER_SCOPE(char* scopeName);

Parameters

NameTypeDescription
scopeNamechar*

Scope name.

Returns void

Description

Cfx.re native reference

Scope entry for profiler.

Usage

Lua
ProfilerEnterScope(scopeName)

-- always works, by hash
Citizen.InvokeNative(0xc795a4a9, scopeName)
JavaScript and C#
JavaScript
ProfilerEnterScope(scopeName);

// by hash
Citizen.invokeNative('0xc795a4a9', scopeName);
C#
Function.Call((Hash)0xc795a4a9, scopeName);

Sources

Cfx.re native reference

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