How to change navigation cost in realtime

I am having the same problem. I’ve already spent a week trying t modify costs on runtime…How did you solve it?