plmGetConstrainedDurationMs
PLM_GET_CONSTRAINED_DURATION_MS0xABB2FA71C83A1B72The GTA V native PLM_GET_CONSTRAINED_DURATION_MS of the MISC namespace, as LS:MP client scripts call it: the global function plmGetConstrainedDurationMs, in JavaScript and in Lua.
plmGetConstrainedDurationMs(): numberplmGetConstrainedDurationMs(): integerUsage
JavaScript
const result = plmGetConstrainedDurationMs();Lua
local result = plmGetConstrainedDurationMs()Parameters
None.
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns duration of how long the game has been in power-saving mode (aka "constrained") in milliseconds.
Reference
- Namespace
- Misc MISC
- In the game
int PLM_GET_CONSTRAINED_DURATION_MS()- Hash
0xABB2FA71C83A1B72- Formerly
_GET_POWER_SAVING_MODE_DURATION