Skip to content

Commit 74f941c

Browse files
committed
Clothes Randomizer: Fix constantly changing clothes
* .. and softlocks caused by it
1 parent 864b4a7 commit 74f941c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/peds/clothes.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ class ClothesRandomizer
105105
Rainbomizer::Events ().OnFade +=
106106
[] { Queue::Add (int ("PLAYER_PED_ID"_n())); };
107107

108+
"SET_PED_COMPONENT_VARIATION"_n.Hook ([] (scrThread::Info *info) {});
109+
"SET_PED_PROP_INDEX"_n.Hook ([] (scrThread::Info *info) {});
110+
108111
REGISTER_HOOK ("89 44 ? ? e8 ? ? ? ? ? 8b ? ? ? 8b ? ? ? 8d ? ? ? 81 c2", 4,
109112
ChangeClothesEvent, void, CPed*, uint32_t, uint8_t, uint32_t*, uint32_t*);
110113
}

0 commit comments

Comments
 (0)