Try this:

TaskSetBlockingOfNonTemporaryEvents(ped,true)

1 Like