GET_PED_LAST_WEAPON_IMPACT_COORD
Writes the position where the ped's last shot landed to coords. Returns true if there was an impact.
Signature
BOOL GET_PED_LAST_WEAPON_IMPACT_COORD(Ped ped, Vector3* coords); // 0x6C4D0409BA1A2BC2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | coords | Vector3* (out pointer) |
Facts
| 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.
local result, coords = Citizen.InvokeNative(0x6C4D0409BA1A2BC2, -- GET_PED_LAST_WEAPON_IMPACT_COORD
PlayerPedId(), -- Ped ped
Citizen.PointerValueVector(), -- Vector3* coords
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, coords] = Citizen.invokeNative("0x6C4D0409BA1A2BC2", // GET_PED_LAST_WEAPON_IMPACT_COORD
PlayerPedId(), // Ped ped
Citizen.pointerValueVector(), // Vector3* coords
Citizen.returnResultAnyway()
);
if (result) {
// ...
}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>();Related WEAPON natives
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- GET_PED_AMMO_TYPE_FROM_WEAPON
- GET_PED_BACKUP_WEAPON
- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
- GET_AMMO_IN_PED_WEAPON
- GET_BEST_PED_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
- _CLEAR_PED_LAST_WEAPON_DAMAGE
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_BEST_PED_WEAPON_IN_GROUP
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.