示例#1
0
        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);
        }
示例#2
0
文件: Tasks.cs 项目: mossyblog/fivem
        public void PerformSequence(TaskSequence sequence)
        {
            if (!sequence.IsClosed)
            {
                sequence.Close(false);
            }

            ClearAll();
            _ped.BlockPermanentEvents = true;

            API.TaskPerformSequence(_ped.Handle, sequence.Handle);
        }