You can set the config flags by applying the value and the bool to a ped.
SET_PED_CONFIG_FLAG, ped, flag, boolYou can also reset the config flag. The bool is always true if you want to reset it, no point in using false.
SET_PED_RESET_FLAG, ped, flag, trueLastly, you can check if a ped is doing a config flag. The bool is always set to true.
GET_PED_CONFIG_FLAG, ped, flag, trueList of known ped config flags:
32 - Cannot fly out of vehicle (seat belt) 52 - No collision 71 - Dead? 78 - Returns if ped is aiming/shooting gun 166 - Pedestrian injured limp 187 - Makes pedestrian injured (holding stomach) while in combat with pistolExample of 187 flag when set to true