RedM Natives

SET_GAMEPLAY_HINT_FOLLOW_DISTANCE_SCALAR

Hash0xDDDC54181868F81F
Runtime nameSetGameplayHintFollowDistanceScalar
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF8BDBF3D573049A1

Signature

void SET_GAMEPLAY_HINT_FOLLOW_DISTANCE_SCALAR(float p0);

Parameters

NameTypeDescription
p0float—

Returns void

Usage

Lua
SetGameplayHintFollowDistanceScalar(p0)

-- always works, by hash
Citizen.InvokeNative(0xDDDC54181868F81F, p0)
JavaScript and C#
JavaScript
SetGameplayHintFollowDistanceScalar(p0);

// by hash
Citizen.invokeNative('0xDDDC54181868F81F', p0 + 0.0000001);
C#
Function.Call((Hash)0xDDDC54181868F81F, p0);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.