ui.add_checkbox("pett", "pet")
var lerp = function(a, b, percentage) { return a + (b - a) * percentage; }
var x = 0;
var y = 0;
var player = render.world_to_screen(entity.get_origin(entity.get_local_player()))
x = lerp(x, player[0] + 150, global_vars.frametime() * 6)
y = lerp(y, player[1] + 200, global_vars.frametime() * 6)
register_callback("render", function() {
if(!vars.get_bool("js.pet")) return;
render.picture("C:/weave/pet.png", [player[0] - 100, player[1] - 50], [311, 295], 255);
})