public void PerformSequence(TaskSequence sequence) { if (!sequence.IsClosed) { sequence.Close(false); } ClearAll(); _ped.BlockPermanentEvents = true; Function.Call(Hash.TASK_PERFORM_SEQUENCE, _ped.Handle, sequence.Handle); }
public void PerformSequence(TaskSequence sequence) { if (!sequence.IsClosed) { sequence.Close(false); } ClearAll(); _ped.BlockPermanentEvents = true; API.TaskPerformSequence(_ped.Handle, sequence.Handle); }