Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TheSaiyanProject_Start()
- {
- TheSaiyanProject_CreateMenu();
- DWORD ActiveTitle;
- while (true)
- {
- if (bPlayingGTAV = ((ActiveTitle = XamGetCurrentTitleId()) == ID_GTAV))
- {
- if (!bInitialized)
- {
- // Patch GTA V (instruction/data patches)
- *(DWORD*)0x827D2164 = 0x60000000; // Breakpoint
- *(DWORD*)0x82D5C960 = 0x60000000; // Vehicle Creation Bypass
- ZeroMemory((PVOID)0x8204DF70, 11); // MAC Bypass
- // Patch GTA V (asm patches)
- memcpy((PVOID)0x82C8B3D8, &TheSaiyanProject_DevMode, 0x60); // Dev Mode
- #ifdef STAFF
- // Patch GTA V (staff patches)
- *(DWORD*)0x82CF7704 = 0x480000F8; // Money Drop Bypass
- *(DWORD*)0x83288A30 = 0x48000104; // Update.rpf Bypass
- memcpy((PVOID)0x82FDB57C, &TheSaiyanProject_ScriptRPFBypass, 0x18); // Script.rpf Bypass
- #endif
- // Patch GTA V (hooks)
- HookFunctionStart((PDWORD)0x83524A28, (PDWORD)PushNative_Stub, (DWORD)PushNative); // Native Hook
- HookFunctionStart((PDWORD)0x83525E00, (PDWORD)ParseScript_Stub, (DWORD)ParseScript); // Script Hook
- PatchInJump((PDWORD)0x83525A10, (DWORD)Timer, false); // TIMERA Hook
- XNotify(L"Hi");
- // Create handler
- HANDLE hThread;
- DWORD dwThread;
- ExCreateThread(&hThread, 0, &dwThread, (PVOID)XapiThreadStartup, (LPTHREAD_START_ROUTINE)TheSaiyanProject_InputHandler, 0, 2);
- XSetThreadProcessor(hThread, 4);
- ResumeThread(hThread);
- CloseHandle(hThread);
- // Let ourselves know that we've initialized
- bInitialized = true;
- // Display
- XMessageBox(L"The Saiyan Project", L"Welcome to The Saiyan Project\nVersion: 0.8\n\nGo to http://www.extforum.net/ for the latest and greatest in Xbox 360 hacks! Want to buy some GTA V source code? I'm selling this source along with my GTA V menu base on ExT!\n\nCredits:\n- XeClutch: Script Hook, Dev Mode, Ban Bypass, and most scripts\n- proditaki: Vehicle Spawning", XMB_NOICON, true);
- // Spoof XUID
- LPCWSTR pwszButtons[] = { L"Yes", L"No" };
- MESSAGEBOX_RESULT Result = XMessageBox(L"The Saiyan Project", L"Would you like to spoof your XUID?", 2, pwszButtons, XMB_ALERTICON);
- if (Result.dwButtonPressed == 1)
- {
- XUID xuid;
- XUserGetXUID(0, &xuid);
- char* szGamertag = XKeyboard(VKBD_LATIN_GAMERTAG, L"", L"The Saiyan Project", L"Enter the gamertag of the user you want to spoof your XUID to.");
- FIND_USER_INFO findUserInfo;
- findUserInfo.qwUserId = 0;
- strcpy((char*)findUserInfo.szGamerTag, szGamertag);
- FIND_USERS_RESPONSE findUsersResponse;
- XOnlineStartup();
- if (!XUserFindUsers(xuid, 1, &findUserInfo, XUserFindUsersResponseSize(1), &findUsersResponse, 0))
- {
- strcpy(XUIDSpoof_Gamertag, findUsersResponse.pUsers->szGamerTag);
- XUIDSpoof_Spoofing = true;
- XUIDSpoof_XUID = findUsersResponse.pUsers->qwUserId;
- PatchModuleImport("default.xex", "xam.xex", 526, (DWORD)XamUserGetNameHook);
- PatchModuleImport("default.xex", "xam.xex", 522, (DWORD)XamUserGetXUIDHook);
- PatchModuleImport("default.xex", "xam.xex", 551, (DWORD)XamUserGetSigninInfoHook);
- char* szNotify = va("Gamertag: %s\nXUID: %16X", szGamertag, xuid);
- PWCHAR wszNotify;
- mbstowcs(wszNotify, szNotify, strlen(szNotify));
- XNotify(wszNotify);
- }
- else
- {
- char* szNotify = va("Unable to calculate %s's XUID", szGamertag);
- PWCHAR wszNotify;
- mbstowcs(wszNotify, szNotify, strlen(szNotify));
- XNotify(wszNotify);
- }
- }
- }
- }
- else if (ActiveTitle == ID_Destiny)
- {
- if (bInitialized)
- TheSaiyanProject_Reset();
- // CurrentMods Destiny Bypass (ripped from .xex because Domo is a skid)
- *(DWORD*)0xD95A05AF = 1;
- *(DWORD*)0xD95A1488 = 1;
- *(DWORD*)0xD95B1988 = 1;
- *(DWORD*)0xD95A05AC = 1;
- *(DWORD*)0xD95A1487 = 1;
- Sleep(50);
- }
- else
- {
- if (bInitialized)
- {
- TheSaiyanProject_Reset();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement