START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
Starts a ray cast from the camera through the current mouse cursor position and returns a handle; the ray's start and end points are written to pVec1 and pVec2.
Signature
ScrHandle START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE(Vector3* pVec1, Vector3* pVec2, int flag, Entity entity, int flag2); // 0x9839013D8B6014F1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | pVec1 | Vector3* (out pointer) |
| 2 | pVec2 | Vector3* (out pointer) |
| 3 | flag | int |
| 4 | entity | Entity |
| 5 | flag2 | int |
Facts
| Name | START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE |
|---|---|
| Hash | 0x9839013D8B6014F1 |
| Namespace | |
| Returns | ScrHandle |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local scrHandle, pVec1, pVec2 = Citizen.InvokeNative(0x9839013D8B6014F1, -- START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
Citizen.PointerValueVector(), -- Vector3* pVec1
Citizen.PointerValueVector(), -- Vector3* pVec2
0, -- int flag
PlayerPedId(), -- Entity entity
0, -- int flag2
Citizen.ResultAsInteger()
)
print(scrHandle, pVec1, pVec2)const [scrHandle, pVec1, pVec2] = Citizen.invokeNative("0x9839013D8B6014F1", // START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
Citizen.pointerValueVector(), // Vector3* pVec1
Citizen.pointerValueVector(), // Vector3* pVec2
0, // int flag
PlayerPedId(), // Entity entity
0, // int flag2
Citizen.resultAsInteger()
);
console.log(scrHandle, pVec1, pVec2)var pVec1Arg = new OutputArgument();
var pVec2Arg = new OutputArgument();
int scrHandle = Function.Call<int>((Hash)0x9839013D8B6014F1, // START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
pVec1Arg, // Vector3* pVec1
pVec2Arg, // Vector3* pVec2
0, // int flag
API.PlayerPedId(), // Entity entity
0 // int flag2
);
Vector3 pVec1 = pVec1Arg.GetResult<Vector3>();
Vector3 pVec2 = pVec2Arg.GetResult<Vector3>();Related SHAPETEST natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.