xhookLua
Game

Chams

Glow on enemies, flat colour through walls.

callbacks.register("on_paint", function()
    for _, p in ipairs(world.get_players(true)) do
        if p:is_alive() then
            chams.set(p, {
                mode = "glow",
                color = { 255, 80, 80, 255 },
                occluded = "flat",
                occluded_color = { 80, 120, 255, 160 },
            })
        end
    end
end)

chams.set lasts one frame, so call it from on_paint every frame.

Chams ยท Lua API ยท xhook