MiscClient

plmIsInConstrainedMode

PLM_IS_IN_CONSTRAINED_MODE0x684A41975F077262

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

SignatureJavaScript
plmIsInConstrainedMode(): boolean
SignatureLua
plmIsInConstrainedMode(): boolean

Usage

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

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

aka "constrained"

Reference

Namespace
Misc MISC
In the game
BOOL PLM_IS_IN_CONSTRAINED_MODE()
Hash
0x684A41975F077262
Formerly
_IS_IN_POWER_SAVING_MODE

Open in the interactive natives reference