ADD_SCENARIO_BLOCKING_AREA
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
int ADD_SCENARIO_BLOCKING_AREA(float x1, float y1, float z1, float x2, float y2, float z2, BOOL p6, int blockingFlags); // 0x1B5C85C612E5256E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x1 | float |
| 2 | y1 | float |
| 3 | z1 | float |
| 4 | x2 | float |
| 5 | y2 | float |
| 6 | z2 | float |
| 7 | p6 | BOOL |
| 8 | blockingFlags | int |
Facts
| 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.
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)// 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)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
);Related PED natives
- _ADD_SCENARIO_BLOCKING_VOLUME
- _IS_SCENARIO_BLOCKING_AREA_VALID
- REMOVE_SCENARIO_BLOCKING_AREA
- _ADD_SCENARIO_TRANSITION
- _SET_PED_DEFENSIVE_AREA_TO_ANGLED_AREA
- REMOVE_SCENARIO_BLOCKING_AREAS
- ADD_ARMOUR_TO_PED
- ADD_CUSTOM_FORMATION_LOCATION
- ADD_FORMATION_LOCATION
- ADD_RELATIONSHIP_GROUP
- _ADD_PED_STAY_OUT_VOLUME
- _ADD_PED_SUBSCRIBE_TO_LEGENDARY_BLIPS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.