setFocusEntity
SET_FOCUS_ENTITY0x198F77705FA0931DThe GTA V native SET_FOCUS_ENTITY of the STREAMING namespace, as LS:MP client scripts call it: the global function setFocusEntity, in JavaScript and in Lua.
setFocusEntity(entity: Entity): voidsetFocusEntity(entity: Entity)Usage
JavaScript
setFocusEntity(entity);Lua
setFocusEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
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.
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.
Reference
- Namespace
- Streaming STREAMING
- In the game
void SET_FOCUS_ENTITY(Entity entity)- Hash
0x198F77705FA0931D