{"hash":"0xFC30DDFF","ns":"CFX","name":"GET_ENTITY_POPULATION_TYPE","slug":"GET_ENTITY_POPULATION_TYPE","official":true,"named":true,"luaName":"GetEntityPopulationType","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"entity","type":"Entity","description":"the entity to obtain the population type from"}],"returnsDescription":"Returns the population type ID, defined by the below enumeration:```cpp\nenum ePopulationType\r\n{\r\n\tPOPTYPE_UNKNOWN = 0,\r\n\tPOPTYPE_RANDOM_PERMANENT,\r\n\tPOPTYPE_RANDOM_PARKED,\r\n\tPOPTYPE_RANDOM_PATROL,\r\n\tPOPTYPE_RANDOM_SCENARIO,\r\n\tPOPTYPE_RANDOM_AMBIENT,\r\n\tPOPTYPE_PERMANENT,\r\n\tPOPTYPE_MISSION,\r\n\tPOPTYPE_REPLAY,\r\n\tPOPTYPE_CACHE,\r\n\tPOPTYPE_TOOL\r\n};\n```","summary":"This native gets an entity's population type.","descriptions":[{"source":"cfx","format":"md","body":"This native gets an entity's population type."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_POPULATION_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_POPULATION_TYPE.md","snippets":{"lua":"local retval = GetEntityPopulationType(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0xfc30ddff, entity, Citizen.ResultAsInteger())","js":"const retval = GetEntityPopulationType(entity);","jsInvoke":"const retval = Citizen.invokeNative('0xfc30ddff', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xfc30ddff, entity);","notes":[]}}