Native referenceFiveM

IS_ENTITY_AT_ENTITY

0x751B70C3D034E187 ENTITY
FUNCTION SIGNATURE
BOOL IS_ENTITY_AT_ENTITY(Entity entity, Entity target, float xSize, float ySize, float zSize, BOOL highlightArea, BOOL do3dCheck, int transportMode);
Property Value
Native Name IS_ENTITY_AT_ENTITY
Hash 0x751B70C3D034E187
Return Type BOOL
Parameters entity (Entity), target (Entity), xSize (float), ySize (float), zSize (float), highlightArea (BOOL), do3dCheck (BOOL), transportMode (int)

Description: Checks if entity is within the specified axis aligned box around the target entity.

enum eTransportMode {
    SCRIPT_TM_ANY = 0,
    SCRIPT_TM_ON_FOOT = 1,
    SCRIPT_TM_IN_VEHICLE = 2
};

Parameters

  • entity (Entity) — The source entity handle.
  • target (Entity) — The target entity handle.
  • xSize (float) — The x size of the axis aligned box around the target entity to check.
  • ySize (float) — The y size of the axis aligned box around the target entity to check.
  • zSize (float) — The z size of the axis aligned box around the target entity to check.
  • highlightArea (BOOL)
  • do3dCheck (BOOL) — If the check should be 2d or 3d.
  • transportMode (int) — The transport mode. Returns early if the entity is not in that mode of transportation.
Back to ENTITY