diff --git a/src/backend/looped/self/persist_outfit.cpp b/src/backend/looped/self/persist_outfit.cpp index ce17da34..6eb46f5a 100644 --- a/src/backend/looped/self/persist_outfit.cpp +++ b/src/backend/looped/self/persist_outfit.cpp @@ -5,6 +5,8 @@ #include "pointers.hpp" #include "services/outfit/outfit_service.hpp" #include "gta/enums.hpp" +#include "core/scr_globals.hpp" +#include "services/tunables/tunables_service.hpp" namespace big { @@ -27,6 +29,11 @@ namespace big void looped::self_persist_outfit() { + //Disable clothing validation + *scr_globals::reset_clothing.as() = FALSE; + if (auto tunable = g_tunables_service->get_tunable(RAGE_JOAAT("DISABLE_CLOTHING_SAVE_SLOT_VALIDATION"))) + *tunable = TRUE; + if (g.self.persist_outfit.empty()) return; //Off diff --git a/src/core/scr_globals.hpp b/src/core/scr_globals.hpp index d09c7728..a92e420f 100644 --- a/src/core/scr_globals.hpp +++ b/src/core/scr_globals.hpp @@ -66,6 +66,8 @@ namespace big::scr_globals static inline const script_global property_names(1312228); static inline const script_global pickups(2765084); + + static inline const script_global reset_clothing(103377); // freemode 75, &iLocal_.*, 2\); } namespace big::scr_locals