_ADD_POP_MULTIPLIER_VOLUME
Only used in script function PROCESS_ZONE_CREATION Returns Pop multiplier volume ID
Hash
0x3233C4EC0514C7ECRuntime name
AddPopMultiplierVolumeNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _ADD_POP_MULTIPLIER_VOLUME(Volume volume, float pedDensity, float vehicleDensity, BOOL p3, BOOL p4);Parameters
| Name | Type | Description |
|---|---|---|
volume | Volume | — |
pedDensity | float | — |
vehicleDensity | float | — |
p3 | BOOL | — |
p4 | BOOL | — |
Returns int
Description
Only used in script function PROCESS_ZONE_CREATION
Returns Pop multiplier volume ID
Usage
local retval = AddPopMultiplierVolume(volume, pedDensity, vehicleDensity, p3, p4)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3233C4EC0514C7EC, volume, pedDensity, vehicleDensity, p3, p4, Citizen.ResultAsInteger())JavaScript and C#
const retval = AddPopMultiplierVolume(volume, pedDensity, vehicleDensity, p3, p4);
// by hash
const retval = Citizen.invokeNative('0x3233C4EC0514C7EC', volume, pedDensity + 0.0000001, vehicleDensity + 0.0000001, p3, p4, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x3233C4EC0514C7EC, volume, pedDensity, vehicleDensity, p3, p4);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.