MiscClient

getBenchmarkPass

GET_BENCHMARK_PASS0x1B2366C3F2A5C8DF

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

SignatureJavaScript
getBenchmarkPass(): number
SignatureLua
getBenchmarkPass(): integer

Usage

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

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 '-benchmarkPass' command line option.

Reference

Namespace
Misc MISC
In the game
int GET_BENCHMARK_PASS()
Hash
0x1B2366C3F2A5C8DF
Formerly
_GET_BENCHMARK_PASS_FROM_COMMAND_LINE

Open in the interactive natives reference