Pin(the window dsp function) keybinding wont work

For some reason this binding wont work hl.bind(cfg.mainMod .. " + 0", hl.dsp.window.pin()), i use the master layout, i tried it in dwindle too, i also tried other window functions and they all work, so i guess the problem is with the pin function itself, and i do also have a window rule for pining Picture-in-Picture which works fine.
My hyprland version is 0.55.2.

Tnx in advance for any response.

SOLVED: pinning is inherently a floating concept in Hyprland, so it only works with floating windows.