SCREEN_HITMARKER

you can call all render.* functions inside of this callback

this callback is called every time the hack renders screen hitmarkers, it can be used to either replace the screen hitmarker, or override it completely returning true will stop the original screen hitmarkers from drawing

local function on_screen_hitmarker(screen_pos, alpha_factor, is_lethal, is_headshot)
    render.push_alpha_modifier(alpha_factor)
    render.circle(screen_pos, 12, color_t(255, 255, 255))
    render.pop_alpha_modifier()

    return true
end

callbacks.add(e_callbacks.SCREEN_HITMARKER, on_screen_hitmarker)

Last updated