The Lab
SHAPETEST native

START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE

returns ScrHandle5 paramsbuild 1207

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

C
ScrHandle START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE(Vector3* pVec1, Vector3* pVec2, int flag, Entity entity, int flag2); // 0x9839013D8B6014F1 b1207

Parameters

#NameType
1pVec1Vector3* (out pointer)
2pVec2Vector3* (out pointer)
3flagint
4entityEntity
5flag2int

Facts

Facts about START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
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.

Lua
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)
JavaScript
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)
C#
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>();
All SHAPETEST natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.