SPAWNPOINTS_GET_SEARCH_RESULT
Writes the position of the spawn point result at the given index into the output pointers.
Signature
void SPAWNPOINTS_GET_SEARCH_RESULT(int randomInt, float* x, Any* y, float* z); // 0x280C7E3AC7F56E90 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | randomInt | int |
| 2 | x | float* (out pointer) |
| 3 | y | Any* (out pointer) |
| 4 | z | float* (out pointer) |
Facts
| 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.
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)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)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>();Related PED natives
- SPAWNPOINTS_GET_SEARCH_RESULT_FLAGS
- SPAWNPOINTS_GET_NUM_SEARCH_RESULTS
- SPAWNPOINTS_CANCEL_SEARCH
- SPAWNPOINTS_IS_SEARCH_ACTIVE
- SPAWNPOINTS_IS_SEARCH_COMPLETE
- SPAWNPOINTS_IS_SEARCH_FAILED
- SPAWNPOINTS_START_SEARCH
- SPAWNPOINTS_START_SEARCH_IN_ANGLED_AREA
- _SPAWNPOINTS_START_SEARCH_WITH_VOLUME
- _GET_ACCURACY_AGAINST_LOCAL_PLAYER_MODIFIER
- _GET_ACTIVE_ANIMAL_OWNER
- _GET_ACTIVE_DYNAMIC_SCENARIO
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.