How to set a ped task by task type index?

Hello there,

I want to use a specific ped task (index 229) but it has no native function or at least I am unable to find it.
So I want to manually play this task, does anyone know how to do this?

All tasks can be found here: https://alloc8or.re/gta5/doc/enums/eTaskTypeIndex.txt

If I’m not wrong, the task you’re referring to is similar to the TaskPlaneMission and TaskHeliMission natives.