RedM Natives

SPAWNPOINTS_GET_SEARCH_RESULT

Hash0x280C7E3AC7F56E90
Runtime nameSpawnpointsGetSearchResult
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x280C7E3AC7F56E90

Signature

void SPAWNPOINTS_GET_SEARCH_RESULT(int randomInt, float* x, Any* y, float* z);

Parameters

NameTypeDescription
randomIntint—
xfloat*—
yAny*—
zfloat*—

Returns void

Usage

Lua
local x, y, z = SpawnpointsGetSearchResult(randomInt)

-- always works, by hash
local x, y, z = Citizen.InvokeNative(0x280C7E3AC7F56E90, randomInt, Citizen.PointerValueFloat(), Citizen.PointerValueInt(), Citizen.PointerValueFloat())
JavaScript and C#
JavaScript
const [x, y, z] = SpawnpointsGetSearchResult(randomInt);

// by hash
const [x, y, z] = Citizen.invokeNative('0x280C7E3AC7F56E90', randomInt, Citizen.pointerValueFloat(), Citizen.pointerValueInt(), Citizen.pointerValueFloat());
C#
var x = new OutputArgument();
var y = new OutputArgument();
var z = new OutputArgument();
Function.Call((Hash)0x280C7E3AC7F56E90, randomInt, x, y, z);
// x.GetResult<float>()
// y.GetResult<int>()
// z.GetResult<float>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.