DRAW_WATERMARK

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

this callback is called every time the hack renders the watermark, it can be used to either replace the text in the watermark or override it with a custom watermark

local function on_draw_watermark(watermark_text)
    -- returning any string will override the watermark text
    return "my custom watermark for " .. user.name
end

callbacks.add(e_callbacks.DRAW_WATERMARK, on_draw_watermark)

if you want to remove the original watermark and replace it with your own, you can return an empty string

local function on_draw_watermark(watermark_text)
    -- draw custom watermark here
    -- render.rect_filled(vec2_t(500, 0), vec2_t(50, 14), color_t(10, 10, 10, 50))

    -- return an empty string to prevent the original watermark from drawing
    return ""
end

callbacks.add(e_callbacks.DRAW_WATERMARK, on_draw_watermark)

Last updated