Skip to content

onClientObjectBreak has attacker=nil when broken object is glass #624

@ArranTuna

Description

@ArranTuna

Describe the bug
onClientObjectBreak has attacker=nil when broken object is glass

To reproduce
crun addEventHandler("onClientObjectBreak", root, function(attacker) outputChatBox(tostring(attacker)) end)
run me.position = Vector3(0, 0, 4)
crun obj = Object(1649, 0, 5, 4)
run giveWeapon(me, 28, 69, true)
-- shoot it

Expected behaviour
Attacker should be the local player but is nil.

Screenshots

Version
Both Multi Theft Auto v1.5.6-release-14414

Additional context

From https://bugs.mtasa.com/view.php?id=9636

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions