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