engineSetObjectStreamingLimits
Client-side
Redistributes MTA's fixed 1000-slot object streaming budget between normal and low-LOD objects.
Syntax
bool engineSetObjectStreamingLimits(int maxObjects, int maxLowLodObjects)Arguments
maxObjectsintMaximum normal streamed objects.
maxLowLodObjectsintMaximum low-LOD streamed objects.
Returns
true when the split is valid; invalid values raise an argument error.
Ownership and lifecycle
Parsing creates inert data. Objects, custom models, material overrides, removals, and any temporary streaming-limit split remain owned by the calling client resource and must be cleaned up when that resource stops.
Important behavior
- The combined limit cannot exceed 1000.
- The default split remains 500/500.
- Lowering a category below current usage restreams that category so the new quota takes effect.
OOP aliases
Engine.setObjectStreamingLimits(maxObjects, maxLowLodObjects)
Example
engineSetObjectStreamingLimits(1000, 0)Where this comes from
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDEDc1d052e9dRead the commit and why the change was made TEST RESOURCE object-streaming-limits test-resources/object-streaming-limits
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How SA-MP maps and object streaming works →