예제 #1
0
        public CRPCManager()
        {
            RAGE.Events.Add(ERPCs.PLAYER_UPDATE_EXP.ToString(), (object[] obj) => {
                CRPCPlayerUpdateExp playerUpdateEXP = new CRPCPlayerUpdateExp();
                if (ProcessRPC(playerUpdateEXP, obj))
                {
                    OnPlayerUpdateEXP(playerUpdateEXP);
                }
            });

            RAGE.Events.Add(ERPCs.EXAMS_QUESTIONS_CALLBACK.ToString(), (object[] obj) => {
                CRPCExamQuestionsCallback examQuestionsCallback = new CRPCExamQuestionsCallback();
                if (ProcessRPC(examQuestionsCallback, obj))
                {
                    OnExamQuestionsCallback(examQuestionsCallback);
                }
            });
        }
예제 #2
0
 void OnExamQuestionsCallback(CRPCExamQuestionsCallback obj) => Globals.Systems.exams.OnExamQuestionsCallback(obj);