Change Actor Image with a script

Hi!
In my game I use many random actors that are not visible on the map but only in the battle.
On the map everyone is in the vehicle which is replaced by another one in certain places.
I have no idea which actor will be the party leader because the player will meet them randomly.
That's why all of them have the same vehicle image for the map (I have millions of reasons to do that without using original vehicle mode in MV, trust me).
But the problem starts when I need to change vehicle image for another one. I could use the "change actor image" command for every actor in game but that's gonna be like 20 actors.

So, my question :
Is it possible to use the "change actor image" option with a script line for gameParty.leader? So it could be universal?
there is a topic on this forum about the script equivalents to every event command in the engine. That list also contains the script equivalent to change actor image.

please search the topic (it's pinned), I don't have the link or command ready.
I already did that and haven't found anything because I was looking for "gameParty.leader".
But you made me look again and I've found that command for specific actor which I don't need because that could be done with a simple event. Anyway changing it for my purpose was simple so if anyone is having the same problem as I do, here it is :

$gameParty.leader().setCharacterImage("name",index);
$gamePlayer.refresh();

Case closed 😉

Original thread: https://forums.rpgmakerweb.com/threads/change-actor-image-with-a-script.120584/