Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.61 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.61 KB

FiveM and RedM population density control

Control the ped and vehicle density for all clients.

Configuration

Each multiplier is a number between 0.0 (no population) and 1.0 (max population).

FiveM and RedM

Multiplier Controls
Config.densityMultipliers.ambientPeds All types of ambient peds
Config.densityMultipliers.scenarioPeds All types of scenario peds
Config.densityMultipliers.vehicles All types of vehicles
Config.densityMultipliers.parkedVehicles Parked vehicles
Config.densityMultipliers.randomVehicles Moving vehicles

RedM only

Multiplier Controls
Config.densityMultipliers.ambientAnimals Ambient animal peds
Config.densityMultipliers.ambientHumans Ambient human peds
Config.densityMultipliers.scenarioAnimals Scenario animal peds
Config.densityMultipliers.scenarioHumans Scenario human peds

Exports

Client-side

getMultiplier

value = exports.popdensity:getMultiplier(name)

Get the current value of a density multiplier on a specific client.

setMultiplier

exports.popdensity:setMultiplier(name, value)

Set the value of a density multiplier on a specific client.

resetMultiplier

exports.popdensity:resetMultipler(name)

Reset a density multiplier to its default value on a specific client.