START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
Old name: _START_SHAPE_TEST_SURROUNDING_COORDS
Hash
0x9839013D8B6014F1Runtime name
StartShapeTestMouseCursorLosProbeNamespaceSHAPETEST
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xFF6BE494C7987F34Signature
ScrHandle START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE(Vector3* pVec1, Vector3* pVec2, int flag, Entity entity, int flag2);Parameters
| Name | Type | Description |
|---|---|---|
pVec1 | Vector3* | — |
pVec2 | Vector3* | — |
flag | int | — |
entity | Entity | — |
flag2 | int | — |
Returns ScrHandle
Description
Old name: _START_SHAPE_TEST_SURROUNDING_COORDS
Usage
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#
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());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.