Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* The following is an object bypass for GTA 1.00 and 1.27. This allows for spawning numerous objects that couldn't previously be spawned such as buildings, sections of the map, and much more. Many of these objects require visiting their original locations before you can spawn them.
- Replace the startExecution function inside main.c in your GTA payload with the following. The current address being used (0xF6EF75) is for 1.27, but the 1.00 addresses are also listed. Use the region checking done elsewhere in main.c to make sure you use the right address for the right region on 1.00. */
- void startExecution() {
- procAttach(gamePID);
- void* executableSpace;
- procReadBytes(gamePID, >aVars->executableSpace, &executableSpace, sizeof(executableSpace));
- procWriteBytes(gamePID, executableSpace, gtaPayload, gtaPayloadSize);
- u8 objectBypassASM[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
- procWriteBytes(gamePID, (void*)0xF6EF75, objectBypassASM, sizeof(objectBypassASM)); // 1.00: US - 0xD4A771, EU - 0xD4A781
- procDetach(gamePID);
- }
- /* Here are a few fun objects you can now spawn with this patch:
- Zancudo UFO - dt1_tc_dufo_core - 0x7D79DAD4
- Sea UFO - cs1_09_sea_ufo - 0x14E592FA
- Hospital - dt1_01_build - 0x49A0B184
- Maze Bank - dt1_11_dt1_tower - 0x6D2FD079
- FIB Building - dt1_05_build1_h - 0xCDC10CF4
- Eclipse Towers - ss1_11_flats - 0x5ECB544E
- Downtown Area - dt1_lod_slod3 - 0xF977A5DD
- Airport Area - ap1_lod_slod4 - 0xC3DEA728
- Fort Zancudo Area - cs3_lod_1_slod3 - 0xBA3491F6
- Sandy Shores Area - cs4_lod_02_slod3 - 0xBC1C27CD
- Half Pipe - prop_skate_halfpipe - 0xF66F582F
- Quarter Pipe - prop_skate_quartpipe - 0x326D3DB1
- You can also spawn any vehicle model as an object. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement