SetPedDensityMultiplierThisFrame
DocsSetPedDensityMultiplierThisFrame(multiplier)Description
Usage: Call this native every frame
Parameters
| Name | Type | Description |
|---|---|---|
multiplier | float | Adjust from 0.0 (minimum, indicating no pedestrians in the street) to 1.0 (maximum, representing a normal amount of pedestrians on the street). |
Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.
Examples
Official
-- 0.0 means no peds, while 1.0 indicates the regular density of peds.
local pedsDensityFactor = 0.0
Citizen.CreateThread(function()
while true do
SetPedDensityMultiplierThisFrame(pedsDensityFactor)
Citizen.Wait(0)
end
end)