Skip to content

Commit d1ec191

Browse files
committed
gta:net: don't attempt to delete duplicate script objects
1 parent ff34673 commit d1ec191

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/components/gta-net-five/src/NetHook.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,10 @@ static HookFunction hookFunction([] ()
18081808
});
18091809
});
18101810

1811+
// always return 'true' from netObjectMgr duplicate script object ID checks
1812+
// (this function deletes network objects considered as duplicate)
1813+
hook::jump(hook::get_pattern("49 8B 0C 24 0F B6 51", -0x69), ReturnTrue);
1814+
18111815
// 1365 requirement: wait for SC to have inited before loading vehicle metadata
18121816
{
18131817
auto location = hook::get_pattern("BA 49 00 00 00 E8 ? ? ? ? EB 28", 0x20);

0 commit comments

Comments
 (0)