RedM Natives

GET_BENCHMARK_PASS

Returns value of the '-benchmarkPass' command line option.

Hash0x9297DACF3A2CDFF7
Runtime nameGetBenchmarkPass
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1B2366C3F2A5C8DF

Signature

int GET_BENCHMARK_PASS();

Returns int

Description

Returns value of the '-benchmarkPass' command line option.

Old name: _GET_BENCHMARK_PASS_FROM_COMMAND_LINE

Usage

Lua
local retval = GetBenchmarkPass()

-- always works, by hash
local retval = Citizen.InvokeNative(0x9297DACF3A2CDFF7, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetBenchmarkPass();

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

Sources

alloc8or RDR3 NativeDB

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