StreamingClient

overrideLodscaleThisFrame

OVERRIDE_LODSCALE_THIS_FRAME0xA76359FC80B2438E

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

SignatureJavaScript
overrideLodscaleThisFrame(scaling: number): void
SignatureLua
overrideLodscaleThisFrame(scaling: number)

Usage

JavaScript
overrideLodscaleThisFrame(scaling);
Lua
overrideLodscaleThisFrame(scaling)

Parameters

ParameterTypeJavaScriptLua
scalingfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

This allows you to override "extended distance scaling" setting. Needs to be called each frame.
Max scaling seems to be 200.0, normal is 1.0

Reference

Namespace
Streaming STREAMING
In the game
void OVERRIDE_LODSCALE_THIS_FRAME(float scaling)
Hash
0xA76359FC80B2438E

Open in the interactive natives reference