RedM Natives

_ADD_AMBIENT_AVOIDANCE_RESTRICTION

Hash0xB56D41A694E42E86
Runtime nameAddAmbientAvoidanceRestriction
NamespacePOPULATION
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

NameTypeDescription
volumeVolume—
includeFlagsint—
excludeFlagsint—
p3Hash—
p4Hash—
p5Hash—
p6int—

Returns void

Description

flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/PedFilterFlags

Usage

Lua
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#
JavaScript
AddAmbientAvoidanceRestriction(volume, includeFlags, excludeFlags, p3, p4, p5, p6);

// by hash
Citizen.invokeNative('0xB56D41A694E42E86', volume, includeFlags, excludeFlags, p3, p4, p5, p6);
C#
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.InvokeNative needs the number — pass joaat("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 InvokeNative with the hash — it always works.

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.