The Lab
PED native

SPAWNPOINTS_START_SEARCH

returns void9 paramsbuild 1207

Starts searching for spawn points around the given position within width, using spawnpointsFlag.

Poll SPAWNPOINTS_IS_SEARCH_COMPLETE, then read results with SPAWNPOINTS_GET_SEARCH_RESULT.

Signature

C
void SPAWNPOINTS_START_SEARCH(float x, float y, float z, float width, float p4, int spawnpointsFlag, float p6, int duration, float p8); // 0x2DF9038C90AD5264 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4widthfloat
5p4float
6spawnpointsFlagint
7p6float
8durationint
9p8float

Facts

Facts about SPAWNPOINTS_START_SEARCH
Name
SPAWNPOINTS_START_SEARCH
Hash
0x2DF9038C90AD5264
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(0x2DF9038C90AD5264, -- SPAWNPOINTS_START_SEARCH
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float width
  0.0, -- float p4
  0, -- int spawnpointsFlag
  0.0, -- float p6
  0, -- int duration
  0.0 -- float p8
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x2DF9038C90AD5264", // SPAWNPOINTS_START_SEARCH
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float width
  0.0, // float p4
  0, // int spawnpointsFlag
  0.0, // float p6
  0, // int duration
  0.0 // float p8
);
C#
Function.Call((Hash)0x2DF9038C90AD5264, // SPAWNPOINTS_START_SEARCH
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float width
  0.0f, // float p4
  0, // int spawnpointsFlag
  0.0f, // float p6
  0, // int duration
  0.0f // float p8
);
All PED natives

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