{"hash":"0x8E3222B7","ns":"CFX","name":"GET_ENTITY_HEALTH","slug":"GET_ENTITY_HEALTH","official":true,"named":true,"luaName":"GetEntityHealth","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"entity","type":"Entity","description":"The entity to check the health of"}],"returnsDescription":"If the entity is a vehicle it will return 0-1000\r\nIf the entity is a ped it will return 0-200\r\nIf the entity is an object it will return 0","summary":"Only works for vehicle and peds","descriptions":[{"source":"cfx","format":"md","body":"Only works for vehicle and peds"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_HEALTH","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_HEALTH.md","snippets":{"lua":"local retval = GetEntityHealth(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0x8e3222b7, entity, Citizen.ResultAsInteger())","js":"const retval = GetEntityHealth(entity);","jsInvoke":"const retval = Citizen.invokeNative('0x8e3222b7', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x8e3222b7, entity);","notes":[]}}