_GET_NUM_FREE_SLOTS_IN_PED_POOL
Returns how many free slots remain in the ped pool.
Check it before spawning many peds.
Signature
int _GET_NUM_FREE_SLOTS_IN_PED_POOL(); // 0x313778EDCA9158E2 b1207Parameters
This native takes no parameters.
Facts
| Name | _GET_NUM_FREE_SLOTS_IN_PED_POOL |
|---|---|
| Hash | 0x313778EDCA9158E2 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x313778EDCA9158E2, -- _GET_NUM_FREE_SLOTS_IN_PED_POOL
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x313778EDCA9158E2", // _GET_NUM_FREE_SLOTS_IN_PED_POOL
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x313778EDCA9158E2); // _GET_NUM_FREE_SLOTS_IN_PED_POOLRelated PED natives
- _GET_NUM_COMPONENT_CATEGORIES_IN_PED
- _GET_NUM_COMPONENTS_IN_PED
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_WHO_HOGITIED_THIS_PED
- _GET_NUM_RESERVED_AMBIENT_PEDS_DESIRED
- _GET_NUM_RESERVED_AMBIENT_PEDS_READY
- _GET_NUM_RESERVED_HEALTH
- _GET_NUM_RESERVED_STAMINA
- GET_NUM_META_PED_OUTFITS
- GET_VEHICLE_PED_IS_IN
- _GET_CARRIER_AS_PED
- _GET_FIRST_ENTITY_PED_IS_CARRYING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.