The Lab
PED native

SPAWNPOINTS_GET_SEARCH_RESULT

returns void4 paramsbuild 1207

Writes the position of the spawn point result at the given index into the output pointers.

Signature

C
void SPAWNPOINTS_GET_SEARCH_RESULT(int randomInt, float* x, Any* y, float* z); // 0x280C7E3AC7F56E90 b1207

Parameters

#NameType
1randomIntint
2xfloat* (out pointer)
3yAny* (out pointer)
4zfloat* (out pointer)

Facts

Facts about SPAWNPOINTS_GET_SEARCH_RESULT
Name
SPAWNPOINTS_GET_SEARCH_RESULT
Hash
0x280C7E3AC7F56E90
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local x, y, z = Citizen.InvokeNative(0x280C7E3AC7F56E90, -- SPAWNPOINTS_GET_SEARCH_RESULT
  0, -- int randomInt
  Citizen.PointerValueFloat(), -- float* x
  Citizen.PointerValueInt(), -- Any* y
  Citizen.PointerValueFloat() -- float* z
)
print(x, y, z)
JavaScript
const [x, y, z] = Citizen.invokeNative("0x280C7E3AC7F56E90", // SPAWNPOINTS_GET_SEARCH_RESULT
  0, // int randomInt
  Citizen.pointerValueFloat(), // float* x
  Citizen.pointerValueInt(), // Any* y
  Citizen.pointerValueFloat() // float* z
);
console.log(x, y, z)
C#
var xArg = new OutputArgument();
var yArg = new OutputArgument();
var zArg = new OutputArgument();
Function.Call((Hash)0x280C7E3AC7F56E90, // SPAWNPOINTS_GET_SEARCH_RESULT
  0, // int randomInt
  xArg, // float* x
  yArg, // Any* y
  zArg // float* z
);
float x = xArg.GetResult<float>();
int y = yArg.GetResult<int>();
float z = zArg.GetResult<float>();
All PED natives

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