Game code
SHAPETEST::GET_SHAPE_TEST_RESULT
0xAEF704E212175383 ·RVA 0x0445F390
Signature
int GET_SHAPE_TEST_RESULT(
ScrHandle shapeTestHandle,
BOOL* hit,
Vector3* endCoords,
Vector3* surfaceNormal,
Entity* entityHit,
BOOL p5
);
Parameters 6
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | ScrHandle | shapeTestHandle |
– |
| 1 | BOOL* | hit |
– |
| 2 | Vector3* | endCoords |
– |
| 3 | Vector3* | surfaceNormal |
– |
| 4 | Entity* | entityHit |
– |
| 5 | BOOL | p5 |
– |
Returns
int
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p5 is not in RDR3's signature; the game reads it as a true/false value.
Call it
// SHAPETEST::GET_SHAPE_TEST_RESULT
auto result = invoke<int>(0xAEF704E212175383, shapeTestHandle, &hit, &endCoords, &surfaceNormal, &entityHit, p5);// SHAPETEST::GET_SHAPE_TEST_RESULT
int result = Function.Call<int>((Hash)0xAEF704E212175383, shapeTestHandle, hit, endCoords, surfaceNormal, entityHit, p5);-- SHAPETEST::GET_SHAPE_TEST_RESULT
local result = Citizen.InvokeNative(0xAEF704E212175383, shapeTestHandle, hit, endCoords, surfaceNormal, entityHit, p5)// SHAPETEST::GET_SHAPE_TEST_RESULT
const result = Citizen.invokeNative("0xAEF704E212175383", shapeTestHandle, hit, endCoords, surfaceNormal, entityHit, p5);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.