StreamingClient

setPedPopulationBudget

SET_PED_POPULATION_BUDGET0x8C95333CFC3340F3

The GTA V native SET_PED_POPULATION_BUDGET of the STREAMING namespace, as LS:MP client scripts call it: the global function setPedPopulationBudget, in JavaScript and in Lua.

SignatureJavaScript
setPedPopulationBudget(p0: number): void
SignatureLua
setPedPopulationBudget(p0: integer)

Usage

JavaScript
setPedPopulationBudget(p0);
Lua
setPedPopulationBudget(p0)

Parameters

ParameterTypeJavaScriptLua
p0intnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Control how many new (ambient?) peds will spawn in the game world.
Range for p0 seems to be 0-3, where 0 is none and 3 is the normal level.

Reference

Namespace
Streaming STREAMING
In the game
void SET_PED_POPULATION_BUDGET(int p0)
Hash
0x8C95333CFC3340F3

Open in the interactive natives reference