GET_PED_LAST_WEAPON_IMPACT_COORD
Hash
0x6C4D0409BA1A2BC2Runtime name
GetPedLastWeaponImpactCoordNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6C4D0409BA1A2BC2Signature
BOOL GET_PED_LAST_WEAPON_IMPACT_COORD(Ped ped, Vector3* coords);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
coords | Vector3* | — |
Returns BOOL
Usage
local retval, coords = GetPedLastWeaponImpactCoord(ped, coords)
-- always works, by hash
local retval, coords = Citizen.InvokeNative(0x6C4D0409BA1A2BC2, ped, Citizen.PointerValueVector(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, coords] = GetPedLastWeaponImpactCoord(ped, coords);
// by hash
const [retval, coords] = Citizen.invokeNative('0x6C4D0409BA1A2BC2', ped, Citizen.pointerValueVector(), Citizen.returnResultAnyway());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.