spawnpointsGetSearchResult
SPAWNPOINTS_GET_SEARCH_RESULT0x280C7E3AC7F56E90The GTA V native SPAWNPOINTS_GET_SEARCH_RESULT of the PED namespace, as LS:MP client scripts call it: the global function spawnpointsGetSearchResult, in JavaScript and in Lua.
spawnpointsGetSearchResult(randomInt: number): [
x: number,
y: number,
z: number
]spawnpointsGetSearchResult(randomInt: integer): number, number, numberUsage
JavaScript
const [x, y, z] = spawnpointsGetSearchResult(randomInt);Lua
local x, y, z = spawnpointsGetSearchResult(randomInt)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
randomInt | int | number | integer |
Returns
3 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | x | float | number | number | output |
| 2 | y | float | number | number | output |
| 3 | z | float | number | number | output |
Reference
- Namespace
- Ped PED
- In the game
void SPAWNPOINTS_GET_SEARCH_RESULT(int randomInt, float* x, float* y, float* z)- Hash
0x280C7E3AC7F56E90