RedM Natives

GET_PED_LAST_WEAPON_IMPACT_COORD

Hash0x6C4D0409BA1A2BC2
Runtime nameGetPedLastWeaponImpactCoord
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6C4D0409BA1A2BC2

Signature

BOOL GET_PED_LAST_WEAPON_IMPACT_COORD(Ped ped, Vector3* coords);

Parameters

NameTypeDescription
pedPed—
coordsVector3*—

Returns BOOL

Usage

Lua
local retval, coords = GetPedLastWeaponImpactCoord(ped, coords)

-- always works, by hash
local retval, coords = Citizen.InvokeNative(0x6C4D0409BA1A2BC2, ped, Citizen.PointerValueVector(), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, coords] = GetPedLastWeaponImpactCoord(ped, coords);

// by hash
const [retval, coords] = Citizen.invokeNative('0x6C4D0409BA1A2BC2', ped, Citizen.pointerValueVector(), Citizen.returnResultAnyway());
C#
var coords = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x6C4D0409BA1A2BC2, ped, coords);
// coords.GetResult<Vector3>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

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