StreamingClient

getUsedCreatorBudget

GET_USED_CREATOR_BUDGET0x3D3D8B3BE5A83D35

The GTA V native GET_USED_CREATOR_BUDGET of the STREAMING namespace, as LS:MP client scripts call it: the global function getUsedCreatorBudget, in JavaScript and in Lua.

SignatureJavaScript
getUsedCreatorBudget(): number
SignatureLua
getUsedCreatorBudget(): number

Usage

JavaScript
const value = getUsedCreatorBudget();
Lua
local value = getUsedCreatorBudget()

Parameters

None.

Returns

float JavaScript number, Lua number

Notes

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

0.0 = no memory used
1.0 = all memory used

Maximum model memory (as defined in common\data\missioncreatordata.meta) is 100 MiB

Reference

Namespace
Streaming STREAMING
In the game
float GET_USED_CREATOR_BUDGET()
Hash
0x3D3D8B3BE5A83D35
Formerly
_GET_USED_CREATOR_MODEL_MEMORY_PERCENTAGE

Open in the interactive natives reference