For getting custom entities using ents#FindByClass.
GM:InitPostEntity would probably be your best bet.
Thanks!