shouldUseMetricMeasurements
SHOULD_USE_METRIC_MEASUREMENTS0xD3D15555431AB793The GTA V native SHOULD_USE_METRIC_MEASUREMENTS of the MISC namespace, as LS:MP client scripts call it: the global function shouldUseMetricMeasurements, in JavaScript and in Lua.
shouldUseMetricMeasurements(): booleanshouldUseMetricMeasurements(): booleanUsage
JavaScript
const result = shouldUseMetricMeasurements();Lua
local result = shouldUseMetricMeasurements()Parameters
None.
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns true if the game is using the metric measurement system (profile setting 227), false if imperial is used.
Reference
- Namespace
- Misc MISC
- In the game
BOOL SHOULD_USE_METRIC_MEASUREMENTS()- Hash
0xD3D15555431AB793- Formerly
_IS_GAME_USING_METRIC_MEASUREMENT_SYSTEM