Change hero with script call

Hello!
I wanted to change the playable character to another actor (not just change graphic)
I also need to include variables, cause I have alot of possible actors to turn into.
I tried this code, to add and remove an actor so the hero would be the added character.

JavaScript:
$gameParty.addActor($gameVariables.value(224));
$gameParty.removeActor(1);

It kinda works. The hero change in the menu, but the hero sprite on the map doesn't change, even if I change the map.
I tried a script call
$gamePlayer.refresh();
to hopefully change the sprite on the map to the current hero... but it doesn't work.

Maybe someone can help?
how many heroes do you have, and are their sprites different?
are you using any plugins? there are a few plugins that change the way the party is handled...
how many heroes do you have, and are their sprites different?
are you using any plugins? there are a few plugins that change the way the party is handled...
YES!
After long search I found the problem!
I had HIMEs Custom Party Leaders Plugin On (without realising I had it the project still)
That was the problem.

Original thread: https://forums.rpgmakerweb.com/threads/change-hero-with-script-call.166220/