The Lab
PED native

ADD_SCENARIO_BLOCKING_AREA

returns int8 paramsbuild 1207

Blocks scenario peds from spawning or using scenarios inside the box between the two corners, and returns a handle to the area.

Remove it with REMOVE_SCENARIO_BLOCKING_AREA when you are done.

Signature

C
int ADD_SCENARIO_BLOCKING_AREA(float x1, float y1, float z1, float x2, float y2, float z2, BOOL p6, int blockingFlags); // 0x1B5C85C612E5256E b1207

Parameters

#NameType
1x1float
2y1float
3z1float
4x2float
5y2float
6z2float
7p6BOOL
8blockingFlagsint

Facts

Facts about ADD_SCENARIO_BLOCKING_AREA
Name
ADD_SCENARIO_BLOCKING_AREA
Hash
0x1B5C85C612E5256E
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x1B5C85C612E5256E, -- ADD_SCENARIO_BLOCKING_AREA
  0.0, -- float x1
  0.0, -- float y1
  0.0, -- float z1
  0.0, -- float x2
  0.0, -- float y2
  0.0, -- float z2
  false, -- BOOL p6
  0, -- int blockingFlags
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x1B5C85C612E5256E", // ADD_SCENARIO_BLOCKING_AREA
  0.0, // float x1
  0.0, // float y1
  0.0, // float z1
  0.0, // float x2
  0.0, // float y2
  0.0, // float z2
  false, // BOOL p6
  0, // int blockingFlags
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x1B5C85C612E5256E, // ADD_SCENARIO_BLOCKING_AREA
  0.0f, // float x1
  0.0f, // float y1
  0.0f, // float z1
  0.0f, // float x2
  0.0f, // float y2
  0.0f, // float z2
  false, // BOOL p6
  0 // int blockingFlags
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.