SPAWNPOINTS_GET_SEARCH_RESULT
Hash
0x280C7E3AC7F56E90Runtime name
SpawnpointsGetSearchResultNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x280C7E3AC7F56E90Signature
void SPAWNPOINTS_GET_SEARCH_RESULT(int randomInt, float* x, Any* y, float* z);Parameters
| Name | Type | Description |
|---|---|---|
randomInt | int | — |
x | float* | — |
y | Any* | — |
z | float* | — |
Returns void
Usage
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#
const [x, y, z] = SpawnpointsGetSearchResult(randomInt);
// by hash
const [x, y, z] = Citizen.invokeNative('0x280C7E3AC7F56E90', randomInt, Citizen.pointerValueFloat(), Citizen.pointerValueInt(), Citizen.pointerValueFloat());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.