SET_FOCUS_ENTITY
It seems to make the entity's coords mark the point from which LOD-distances are measured.
Hash
0x955AEDD58F4BD309Runtime name
SetFocusEntityNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x198F77705FA0931DSignature
void SET_FOCUS_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
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
SetFocusEntity(entity)
-- always works, by hash
Citizen.InvokeNative(0x955AEDD58F4BD309, entity)JavaScript and C#
SetFocusEntity(entity);
// by hash
Citizen.invokeNative('0x955AEDD58F4BD309', entity);Function.Call((Hash)0x955AEDD58F4BD309, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.