Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seg001:0044E138 createVehicleFunc:
- ...
- seg001:0044E194 lis r3, isOnline@ha
- seg001:0044E198 cmpwi cr1, r29, 0
- seg001:0044E19C lbz r3, isOnline@l(r3) # load isOnline flag
- seg001:0044E1A0 cmpwi r3, 0 # compare (are we online)
- seg001:0044E1A4 cror eq, eq, 4*cr1+eq
- seg001:0044E1A8 beq loc_44E1B8 # branch if NOT online → allow spawn
- # PATCH: replaced with NOP (0x60000000)
- # → game never branches, continues as SP
- seg001:0044E1AC bl GetThisScriptHandlerNetwork
- seg001:0044E1B0 cmpwi r3, 0
- seg001:0044E1B4 beq loc_44E464 # if handler invalid → BLOCK spawn
- # PATCH: replaced with NOP
- # → function never jumps to "dead path"
- Unpatched:
- When online, the function checks isOnline and GetThisScriptHandlerNetwork.
- If the handler isn’t valid, execution jumps to loc_44E464 → entity creation fails.
- Patched:
- Both branches (beq) are overwritten with a NOP (0x60000000).
- This disables the online-specific restrictions and the function continues as if it was always in story mode.
- Result: vehicles and peds spawn online exactly the same as singleplayer.
- This is why without the patches you cannot spawn entities online, and with the patches the game can no longer tell whether you’re in story mode or multiplayer.
- If you want to spawn vehicles and peds while online, you must apply the CREATE_VEHICLE and CREATE_PED patches.
- Without them, the game performs an environment check, detects that you are in a network session, and silently blocks the spawn request.
- By patching out those conditional branches, the checks are neutralized and the functions behave exactly like they do in singleplayer, allowing entity creation to succeed in online sessions.
Advertisement
Add Comment
Please, Sign In to add comment