I think I'd need to see the entire script or model file to determine what the error could be. One thing I know even with a simple mod, for example the cube mod, I still needed the interior cockpit, rearview, and fake wheels code for the mod to compile.