_ADD_AMBIENT_AVOIDANCE_RESTRICTION
Hash
0xB56D41A694E42E86Runtime name
AddAmbientAvoidanceRestrictionNamespacePOPULATION
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _ADD_AMBIENT_AVOIDANCE_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: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/PedFilterFlags
Usage
AddAmbientAvoidanceRestriction(volume, includeFlags, excludeFlags, p3, p4, p5, p6)
-- always works, by hash
Citizen.InvokeNative(0xB56D41A694E42E86, volume, includeFlags, excludeFlags, p3, p4, p5, p6)JavaScript and C#
AddAmbientAvoidanceRestriction(volume, includeFlags, excludeFlags, p3, p4, p5, p6);
// by hash
Citizen.invokeNative('0xB56D41A694E42E86', volume, includeFlags, excludeFlags, p3, p4, p5, p6);Function.Call((Hash)0xB56D41A694E42E86, 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.