Try looking at existing Add-Ons that do the same thing and at least attempting something before asking in Coding Help. If you try something, we can fix it. If you just expect everyone to make your whole mod for you, you won't get anywhere or learn anything.
If there's an event that does something, the function to use it is the same.
Player -> changeDatablock ["Standard Player"]
%player.changeDatablock(playerStandardArmor);