EntityClient

getEntityPopulationType

GET_ENTITY_POPULATION_TYPE0xF6F5161F4534EDFF

The GTA V native GET_ENTITY_POPULATION_TYPE of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityPopulationType, in JavaScript and in Lua.

SignatureJavaScript
getEntityPopulationType(entity: Entity): number
SignatureLua
getEntityPopulationType(entity: Entity): integer

Usage

JavaScript
const result = getEntityPopulationType(entity);
Lua
local result = getEntityPopulationType(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Entity ENTITY
In the game
int GET_ENTITY_POPULATION_TYPE(Entity entity)
Hash
0xF6F5161F4534EDFF

Open in the interactive natives reference