RedM Natives

GET_ENTITY_POPULATION_TYPE

Hash0xADE28862B6D7B85B
Runtime nameGetEntityPopulationType
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF6F5161F4534EDFF

Signature

int GET_ENTITY_POPULATION_TYPE(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Usage

Lua
local retval = GetEntityPopulationType(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xADE28862B6D7B85B, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityPopulationType(entity);

// by hash
const retval = Citizen.invokeNative('0xADE28862B6D7B85B', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xADE28862B6D7B85B, entity);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.