# POPULATION::GET_NUM_MODELS_IN_POPULATION_SET

- **Hash:** `0xA1E3171ED0E47564`
- **Namespace:** POPULATION
- **Runtime name (Lua/JS):** `GetNumModelsInPopulationSet`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/POPULATION/GET_NUM_MODELS_IN_POPULATION_SET

## Signature

```c
int GET_NUM_MODELS_IN_POPULATION_SET(Hash popSetHash);
```

## Parameters

- `popSetHash` (`Hash`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetNumModelsInPopulationSet(popSetHash)

-- always available, by hash
local retval = Citizen.InvokeNative(0xA1E3171ED0E47564, popSetHash, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetNumModelsInPopulationSet(popSetHash);

// by hash
const retval = Citizen.invokeNative('0xA1E3171ED0E47564', popSetHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xA1E3171ED0E47564, popSetHash);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.

*Sources: alloc8or RDR3 NativeDB.*
