_ADD_AMBIENT_SPAWN_RESTRICTION
Hash
0x18262CAFEBB5FBE1Runtime name
AddAmbientSpawnRestrictionNamespacePOPULATION
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _ADD_AMBIENT_SPAWN_RESTRICTION(Volume volume, int includeFlags, int excludeFlags, Hash p3, Hash p4, Hash p5, int p6);Parameters
| Name | Type | Description |
|---|---|---|
volume | Volume | — |
includeFlags | int | — |
excludeFlags | int | — |
p3 | Hash | — |
p4 | Hash | — |
p5 | Hash | — |
p6 | int | — |
Returns void
Description
flags: see 0xB56D41A694E42E86
Usage
AddAmbientSpawnRestriction(volume, includeFlags, excludeFlags, p3, p4, p5, p6)
-- always works, by hash
Citizen.InvokeNative(0x18262CAFEBB5FBE1, volume, includeFlags, excludeFlags, p3, p4, p5, p6)JavaScript and C#
AddAmbientSpawnRestriction(volume, includeFlags, excludeFlags, p3, p4, p5, p6);
// by hash
Citizen.invokeNative('0x18262CAFEBB5FBE1', volume, includeFlags, excludeFlags, p3, p4, p5, p6);Function.Call((Hash)0x18262CAFEBB5FBE1, volume, includeFlags, excludeFlags, p3, p4, p5, p6);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - 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.
Enums and flags
- PedFilterFlags 31 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.