The Lab
WEAPON native

GET_PED_LAST_WEAPON_IMPACT_COORD

returns BOOL2 paramsbuild 1207

Writes the position where the ped's last shot landed to coords. Returns true if there was an impact.

Signature

C
BOOL GET_PED_LAST_WEAPON_IMPACT_COORD(Ped ped, Vector3* coords); // 0x6C4D0409BA1A2BC2 b1207

Parameters

#NameType
1pedPed
2coordsVector3* (out pointer)

Facts

Facts about GET_PED_LAST_WEAPON_IMPACT_COORD
Name
GET_PED_LAST_WEAPON_IMPACT_COORD
Hash
0x6C4D0409BA1A2BC2
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, coords = Citizen.InvokeNative(0x6C4D0409BA1A2BC2, -- GET_PED_LAST_WEAPON_IMPACT_COORD
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueVector(), -- Vector3* coords
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, coords] = Citizen.invokeNative("0x6C4D0409BA1A2BC2", // GET_PED_LAST_WEAPON_IMPACT_COORD
  PlayerPedId(), // Ped ped
  Citizen.pointerValueVector(), // Vector3* coords
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var coordsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x6C4D0409BA1A2BC2, // GET_PED_LAST_WEAPON_IMPACT_COORD
  API.PlayerPedId(), // Ped ped
  coordsArg // Vector3* coords
);
Vector3 coords = coordsArg.GetResult<Vector3>();
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.