FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: STREAMINGAPI set: clientGame: gta5editImprove

SET_FOCUS_ENTITY

0x198F77705FA0931D
0x18DB04AC
// SetFocusEntity
void SET_FOCUS_ENTITY(Entity entity);
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.  
Privacy
•
Cookie Policy
•
Cookie Settings
NEW_LOAD_SCENE_START_SPHERE(float x, float y, float z, float radius, Any p4)
NEW_LOAD_SCENE_STOP()
OVERRIDE_LODSCALE_THIS_FRAME(float scaling)
PREFETCH_SRL(char* srl)
REMOVE_ANIM_DICT(char* animDict)
REMOVE_ANIM_SET(char* animSet)
REMOVE_CLIP_SET(char* clipSet)
REMOVE_IPL(char* iplName)
REMOVE_MODEL_FROM_CREATOR_BUDGET(Hash modelHash)
REMOVE_NAMED_PTFX_ASSET(char* fxName)
REMOVE_PTFX_ASSET()
REQUEST_ADDITIONAL_COLLISION_AT_COORD(float x, float y, float z)
REQUEST_ANIM_DICT(char* animDict)
REQUEST_ANIM_SET(char* animSet)
REQUEST_CLIP_SET(char* clipSet)
REQUEST_COLLISION_AT_COORD(float x, float y, float z)
REQUEST_COLLISION_FOR_MODEL(Hash model)
REQUEST_IPL(char* iplName)
REQUEST_MENU_PED_MODEL(Hash model)
REQUEST_MODEL(Hash model)
REQUEST_MODELS_IN_ROOM(int interior, char* roomName)
REQUEST_NAMED_PTFX_ASSET(char* fxName)
REQUEST_PTFX_ASSET()
SET_DITCH_POLICE_MODELS(BOOL toggle)
SET_FOCUS_ENTITY(Entity entity)
SET_FOCUS_POS_AND_VEL(float x, float y, float z, float offsetX, float offsetY, float offsetZ)
SET_GAME_PAUSES_FOR_STREAMING(BOOL toggle)
SET_HD_AREA(float x, float y, float z, float radius)
SET_INTERIOR_ACTIVE(int interiorID, BOOL toggle)
SET_ISLAND_ENABLED(char* islandName, BOOL toggle)
SET_MAPDATACULLBOX_ENABLED(char* name, BOOL toggle)
SET_MODEL_AS_NO_LONGER_NEEDED(Hash model)
SET_PED_POPULATION_BUDGET(int budgetLevel)
SET_PLAYER_SHORT_SWITCH_STYLE(int style)
SET_PLAYER_SWITCH_ESTABLISHING_SHOT(char* name)