RDR3 match
MISC::GET_CLOSEST_POINT_ON_LINE
0x65313A107C5339A2 ·RVA 0x03E834F0
Signature
Vector3 GET_CLOSEST_POINT_ON_LINE(
Vector3 p0,
Vector3 p3,
Vector3 p6,
BOOL p9
);
The scripts pass 7 values to this native; the decoded signature lists 4 (arguments the game doesn't read are left out).
Parameters 4
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Vector3 | p0 |
– |
| 1 | Vector3 | p3 |
– |
| 2 | Vector3 | p6 |
– |
| 3 | BOOL | p9 |
– |
Returns
Vector3
Notes
- p0, p1 and p2 in RDR3 are one Vector3 in GTA VI.
- p3, p4 and p5 in RDR3 are one Vector3 in GTA VI.
- p6, p7 and p8 in RDR3 are one Vector3 in GTA VI.
Call it
// MISC::GET_CLOSEST_POINT_ON_LINE
auto result = invoke<Vector3>(0x65313A107C5339A2, p0, p3, p6, p9);// MISC::GET_CLOSEST_POINT_ON_LINE
Vector3 result = Function.Call<Vector3>((Hash)0x65313A107C5339A2, p0, p3, p6, p9);-- MISC::GET_CLOSEST_POINT_ON_LINE
local result = Citizen.InvokeNative(0x65313A107C5339A2, p0, p3, p6, p9)// MISC::GET_CLOSEST_POINT_ON_LINE
const result = Citizen.invokeNative("0x65313A107C5339A2", p0, p3, p6, p9);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.