RedM Natives

START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE

Old name: _START_SHAPE_TEST_SURROUNDING_COORDS

Hash0x9839013D8B6014F1
Runtime nameStartShapeTestMouseCursorLosProbe
NamespaceSHAPETEST
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xFF6BE494C7987F34

Signature

ScrHandle START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE(Vector3* pVec1, Vector3* pVec2, int flag, Entity entity, int flag2);

Parameters

NameTypeDescription
pVec1Vector3*—
pVec2Vector3*—
flagint—
entityEntity—
flag2int—

Returns ScrHandle

Description

Old name: _START_SHAPE_TEST_SURROUNDING_COORDS

Usage

Lua
local retval, pVec1, pVec2 = StartShapeTestMouseCursorLosProbe(flag, entity, flag2)

-- always works, by hash
local retval, pVec1, pVec2 = Citizen.InvokeNative(0x9839013D8B6014F1, Citizen.PointerValueVector(), Citizen.PointerValueVector(), flag, entity, flag2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, pVec1, pVec2] = StartShapeTestMouseCursorLosProbe(flag, entity, flag2);

// by hash
const [retval, pVec1, pVec2] = Citizen.invokeNative('0x9839013D8B6014F1', Citizen.pointerValueVector(), Citizen.pointerValueVector(), flag, entity, flag2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var pVec1 = new OutputArgument();
var pVec2 = new OutputArgument();
int retval = Function.Call<int>((Hash)0x9839013D8B6014F1, pVec1, pVec2, flag, entity, flag2);
// pVec1.GetResult<Vector3>()
// pVec2.GetResult<Vector3>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.