As long as the exhaust is flued out properly, via metal pipe to the outside of the truck I can't see no problem.
Allowe for enough ventilation near the generator and fresh airflow in the van as well.
CO 2 is a quiete killer
Common sense applies too, if you put rubbish near hot exhaust pipes etc, you are asking for trouble.