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); } }); }
void OnExamQuestionsCallback(CRPCExamQuestionsCallback obj) => Globals.Systems.exams.OnExamQuestionsCallback(obj);