HI, i was messing around with some scripts, but i had an idea to make a zombie mod. I see there was one for console and all they did pretty much is change all the peds in the world to a zombie skin.
i was thinking around using entity swap model from getting nearby peds i've tried to figure this out by myself and i've come to my last try

Atm i'm using lua, if you can help thank you