RedM Natives

_ADD_AMBIENT_SPAWN_RESTRICTION

Hash0x18262CAFEBB5FBE1
Runtime nameAddAmbientSpawnRestriction
NamespacePOPULATION
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

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

Returns void

Description

Usage

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

// by hash
Citizen.invokeNative('0x18262CAFEBB5FBE1', volume, includeFlags, excludeFlags, p3, p4, p5, p6);
C#
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.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.