If you have vrp, this will work. in the basic folder, the npc_control script is what you are looking for.