{"hash":"0x23B2A641","ns":"CFX","name":"GET_NET_TYPE_FROM_ENTITY","slug":"GET_NET_TYPE_FROM_ENTITY","official":true,"named":true,"luaName":"GetNetTypeFromEntity","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"entity","type":"Entity","description":"The entity to get the specific type of."}],"returnsDescription":"The specific entity type returned as an integer value or -1 if the entity is invalid.","summary":"Gets the specific entity type (as an integer), which can be one of the following defined down below:","descriptions":[{"source":"cfx","format":"md","body":"Gets the specific entity type (as an integer), which can be one of the following defined down below:\n\n#### FiveM:\n\n```cpp\nenum eNetObjEntityType\n{\n    Automobile = 0,\n    Bike = 1,\n    Boat = 2,\n    Door = 3,\n    Heli = 4,\n    Object = 5,\n    Ped = 6,\n    Pickup = 7,\n    PickupPlacement = 8,\n    Plane = 9,\n    Submarine = 10,\n    Player = 11,\n    Trailer = 12,\n    Train = 13\n};\n```\n\n#### RedM:\n\n```cpp\nenum eNetObjEntityType\n{\n    Animal = 0,\n    Automobile = 1,\n    Bike = 2,\n    Boat = 3,\n    Door = 4,\n    Heli = 5,\n    Object = 6,\n    Ped = 7,\n    Pickup = 8,\n    PickupPlacement = 9,\n    Plane = 10,\n    Submarine = 11,\n    Player = 12,\n    Trailer = 13,\n    Train = 14,\n    DraftVeh = 15,\n    StatsTracker = 16,\n    PropSet = 17,\n    AnimScene = 18,\n    GroupScenario = 19,\n    Herd = 20,\n    Horse = 21,\n    WorldState = 22,\n    WorldProjectile = 23,\n    Incident = 24,\n    Guardzone = 25,\n    PedGroup = 26,\n    CombatDirector = 27,\n    PedSharedTargeting = 28,\n    Persistent = 29\n};\n```"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_NET_TYPE_FROM_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_NET_TYPE_FROM_ENTITY.md","snippets":{"lua":"local retval = GetNetTypeFromEntity(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0x23b2a641, entity, Citizen.ResultAsInteger())","js":"const retval = GetNetTypeFromEntity(entity);","jsInvoke":"const retval = Citizen.invokeNative('0x23b2a641', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x23b2a641, entity);","notes":[]}}