RedM Natives

GET_BENCHMARK_ITERATIONS

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

Hash0x22FC52CF470CC98D
Runtime nameGetBenchmarkIterations
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4750FC27570311EC

Signature

int GET_BENCHMARK_ITERATIONS();

Returns int

Description

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

Old name: _GET_BENCHMARK_ITERATIONS_FROM_COMMAND_LINE

Usage

Lua
local retval = GetBenchmarkIterations()

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

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

Sources

alloc8or RDR3 NativeDB

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