@Bluedrake42 Trying to do what others have commented. The script, even client side, seems to have no effect. Here is what I have.
A little modified from your original script so its easy to trigger in-game with /riot
(ignore ServerRiot() that was from testing and forgot to remove it after removing the function.)
I believe the server needs to create a pedestrian and then sync it to the clients. For a riot gamemode you'd need to disable ped spawning and make your script create and sync each pedestrian to all of your clients. If that's even possible.
Is there a public place where your community is developing these scripts? Maybe some people would be interested in peeking in and giving pointers.