Skip to content

SetColshapeEntityType ​

клиент + сервер SET_COLSHAPE_ENTITY_TYPE

c
void SET_COLSHAPE_ENTITY_TYPE(int colShapeId, int entityType, BOOL value);

Sets whether the collision shape should detect a specific entity type.

By default every entity type is enabled, so a fresh collision shape detects all entities. Setting a type to false excludes only that type from detection; every other type stays as it was. To detect a single type (e.g. automobiles only) disable every other type.

The entity type is the sync (network) entity type index (tables below), not the GET_ENTITY_TYPE classification.

GTA5 sync entity types ​

IndexType
0automobile
1bike
2boat
3door
4heli
5object
6ped
7pickup
8pickup placement
9plane
10submarine
11player
12trailer
13train

RedM sync entity types ​

IndexType
0animal
1automobile
2bike
3boat
4door
5heli
6object
7ped
8pickup
9pickup placement
10plane
11submarine
12player
13trailer
14train
15draft vehicle
21horse

Параметры ​

  • colShapeId: The collision shape ID.
  • entityType: The sync entity type index (see the tables above).
  • value: true to include this entity type in detection, false to exclude it.

Страница собрана автоматически из native-decls/SetColshapeEntityType.md. Нашли ошибку — поправьте исходный файл.

Независимый проект на базе Cfx.re. Не связан с Rockstar Games и Take-Two Interactive.