help with idea

i am helping on a new roleplay gamemode and i need to know how to make a tow truck i don’t need the whole code or anything i can figure that out just need some functions or hooks and would i have to make it into an entity