Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "sdk_test.h"
- DWORD GObjObjects_offset = 0x01AAF304;
- DWORD Names_offset = 0x1241D4A8;//WRONG!!!
- DWORD Offset_Name = 0x24;
- // Objects and Names arrays
- TArray< UObject* >* GObjObjects = ( TArray< UObject* >* ) GObjObjects_offset; // global objects
- TArray< FNameEntry* >* Names = ( TArray< FNameEntry* >* ) Names_offset; // global names
- // funcs
- void onAttach()
- {
- FILE* Log = NULL;
- fopen_s ( &Log, "Loot.txt", "w+" );
- fprintf (Log, "Hello World\n");
- fprintf (Log, "%i\n", GObjObjects->Num());
- fclose ( Log );
- }
- BOOL WINAPI DllMain ( HMODULE hModule, DWORD dwReason, LPVOID lpReserved )
- {
- switch ( dwReason )
- {
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls ( hModule );
- CreateThread ( NULL, 0, ( LPTHREAD_START_ROUTINE ) onAttach, NULL, 0, NULL );
- return true;
- break;
- case DLL_PROCESS_DETACH:
- return true;
- break;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment