The Lab
PED native

SET_PED_NON_CREATION_AREA

returns void6 paramsbuild 1207

Prevents peds from spawning inside the box between the two corners.

Signature

C
void SET_PED_NON_CREATION_AREA(float x1, float y1, float z1, float x2, float y2, float z2); // 0xEE01041D559983EA b1207

Parameters

#NameType
1x1float
2y1float
3z1float
4x2float
5y2float
6z2float

Facts

Facts about SET_PED_NON_CREATION_AREA
Name
SET_PED_NON_CREATION_AREA
Hash
0xEE01041D559983EA
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0xEE01041D559983EA, -- SET_PED_NON_CREATION_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
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xEE01041D559983EA", // SET_PED_NON_CREATION_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
);
C#
Function.Call((Hash)0xEE01041D559983EA, // SET_PED_NON_CREATION_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
);
All PED natives

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