xhookLua
Game

Kill log

A toast for every kill you get.

callbacks.register("on_player_death", function(e)
    local me = engine.local_player()
    if not me or e.attacker ~= me then return end

    local victim = e.victim and e.victim:name() or "someone"
    local hs = e.headshot and " (headshot)" or ""
    engine.notify("Kill", victim .. hs .. " with " .. e.weapon)
end)
Kill log ยท Lua API ยท xhook