RedM Natives

SET_FOCUS_ENTITY

It seems to make the entity's coords mark the point from which LOD-distances are measured.

Hash0x955AEDD58F4BD309
Runtime nameSetFocusEntity
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x198F77705FA0931D

Signature

void SET_FOCUS_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns void

Description

It seems to make the entity's coords mark the point from which LOD-distances are measured. In my testing, setting a vehicle as the focus entity and moving that vehicle more than 300 distance units away from the player will make the level of detail around the player go down drastically (shadows disappear, textures go extremely low res, etc). The player seems to be the default focus entity.

Usage

Lua
SetFocusEntity(entity)

-- always works, by hash
Citizen.InvokeNative(0x955AEDD58F4BD309, entity)
JavaScript and C#
JavaScript
SetFocusEntity(entity);

// by hash
Citizen.invokeNative('0x955AEDD58F4BD309', entity);
C#
Function.Call((Hash)0x955AEDD58F4BD309, entity);

Sources

alloc8or RDR3 NativeDB

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