RDR3 match
MISC::GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
0x97EFAD2028C369F5 ·RVA 0x03E84E80
Signature
BOOL GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE(
Ped ped,
Hash weaponHash,
float distance,
Vector3* outCoords,
BOOL p4,
BOOL mustBeOwnedByThisPed
);
The scripts pass 7 values to this native; the decoded signature lists 6 (arguments the game doesn't read are left out).
Parameters 6
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Hash | weaponHash |
– |
| 2 | float | distance |
– |
| 3 | Vector3* | outCoords |
– |
| 4 | BOOL | p4 |
– |
| 5 | BOOL | mustBeOwnedByThisPed |
– |
Returns
BOOL
Call it
// MISC::GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
auto result = invoke<BOOL>(0x97EFAD2028C369F5, ped, weaponHash, distance, &outCoords, p4, mustBeOwnedByThisPed);// MISC::GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
bool result = Function.Call<bool>((Hash)0x97EFAD2028C369F5, ped, weaponHash, distance, outCoords, p4, mustBeOwnedByThisPed);-- MISC::GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
local result = Citizen.InvokeNative(0x97EFAD2028C369F5, ped, weaponHash, distance, outCoords, p4, mustBeOwnedByThisPed)// MISC::GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
const result = Citizen.invokeNative("0x97EFAD2028C369F5", ped, weaponHash, distance, outCoords, p4, mustBeOwnedByThisPed);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.