Skip to content

onClientPlayerDamage and onClientVehicleDamage incorrect triggering #4613

@gh0st2k2

Description

@gh0st2k2

Describe the bug

When the localPlayer gets damaged by an attacker who's streamed in and not in his view (behind the camera with some distance), onClientPlayerDamage event does not trigger for the localPlayer. But if the camera turns to that attacker while keeping the same distance, with the attacker damaging the localPlayer, the event triggers. This happens also for onClientVehicleDamage...
Is this the intended behavior?

Steps to reproduce

player 1 (victim) stands still
player 2 (attacker) gets close to the victim, positioned out of the victim's camera field of view
player 2 (attacker) damages the victim
player 1 (victim) does not get notified about the damage he is receiving
player 2 (attacker) gets notified about the damage he is dealing to the victim

Version

Multi Theft Auto v1.6-release-23690
Copyright (C) 2003 - 2025 Multi Theft Auto
MTA:SA Server v1.6-release-23690

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions