MiscClient

getBenchmarkIterations

GET_BENCHMARK_ITERATIONS0x4750FC27570311EC

The GTA V native GET_BENCHMARK_ITERATIONS of the MISC namespace, as LS:MP client scripts call it: the global function getBenchmarkIterations, in JavaScript and in Lua.

SignatureJavaScript
getBenchmarkIterations(): number
SignatureLua
getBenchmarkIterations(): integer

Usage

JavaScript
const result = getBenchmarkIterations();
Lua
local result = getBenchmarkIterations()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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

Reference

Namespace
Misc MISC
In the game
int GET_BENCHMARK_ITERATIONS()
Hash
0x4750FC27570311EC
Formerly
_GET_BENCHMARK_ITERATIONS_FROM_COMMAND_LINE

Open in the interactive natives reference