RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_ENTITY_TYPE

GET_ENTITY_TYPE

Gets the entity type (as an integer), which can be one of the following defined down below: **The following entities will return type `1`:** * Ped * Player * Animal (Red Dead Redemption 2) * Horse (Red Dead Redemption 2) **The following entities will return type `2`:** * Automobile * Bike * Boat * Heli * Plane * Submarine * Trailer * Train * DraftVeh (Red Dead Redemption 2) **The following entities will return type `3`:** * Object * Door * Pickup Otherwise, a value of `0` will be returned.

CFX

Signature

lua
GetEntityType(entity)
-- returns int

Parameters

NameTypeDescription
EntityThe entity to get the type of.

Usage

lua
GetEntityType(entity)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details