{"hash":"0xB1BD08D","ns":"CFX","name":"GET_ENTITY_TYPE","slug":"GET_ENTITY_TYPE","official":true,"named":true,"luaName":"GetEntityType","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"entity","type":"Entity","description":"The entity to get the type of."}],"returnsDescription":"The entity type returned as an integer value.","summary":"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 re…","descriptions":[{"source":"cfx","format":"md","body":"Gets the entity type (as an integer), which can be one of the following defined down below:\n\n**The following entities will return type `1`:**\n\n*   Ped\n*   Player\n*   Animal (Red Dead Redemption 2)\n*   Horse (Red Dead Redemption 2)\n\n**The following entities will return type `2`:**\n\n*   Automobile\n*   Bike\n*   Boat\n*   Heli\n*   Plane\n*   Submarine\n*   Trailer\n*   Train\n*   DraftVeh (Red Dead Redemption 2)\n\n**The following entities will return type `3`:**\n\n*   Object\n*   Door\n*   Pickup\n\nOtherwise, a value of `0` will be returned."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_TYPE.md","snippets":{"lua":"local retval = GetEntityType(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0xb1bd08d, entity, Citizen.ResultAsInteger())","js":"const retval = GetEntityType(entity);","jsInvoke":"const retval = Citizen.invokeNative('0xb1bd08d', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xb1bd08d, entity);","notes":[]}}