diff --git a/BigBaseV2/src/backend/backend.cpp b/BigBaseV2/src/backend/backend.cpp index cba50b63..0538cc61 100644 --- a/BigBaseV2/src/backend/backend.cpp +++ b/BigBaseV2/src/backend/backend.cpp @@ -70,6 +70,7 @@ namespace big QUEUE_JOB_BEGIN_CLAUSE() { + looped::vehicle_despawn_bypass(); looped::vehicle_god_mode(); looped::vehicle_horn_boost(); looped::vehicle_speedo_meter(); diff --git a/BigBaseV2/src/backend/looped/looped.hpp b/BigBaseV2/src/backend/looped/looped.hpp index 6dbb9562..19ab6f81 100644 --- a/BigBaseV2/src/backend/looped/looped.hpp +++ b/BigBaseV2/src/backend/looped/looped.hpp @@ -26,15 +26,16 @@ namespace big static void system_update_pointers(); static void system_screen_size(); + static void vehicle_despawn_bypass(); + static void vehicle_god_mode(); + static void vehicle_horn_boost(); + static void vehicle_speedo_meter(); + static void weapons_cage_gun(); static void weapons_delete_gun(); static void weapons_gravity_gun(); static void weapons_repair_gun(); static void weapons_steal_vehicle_gun(); static void weapons_vehicle_gun(); - - static void vehicle_god_mode(); - static void vehicle_horn_boost(); - static void vehicle_speedo_meter(); }; } \ No newline at end of file diff --git a/BigBaseV2/src/backend/looped/vehicle/despawn_bypass.cpp b/BigBaseV2/src/backend/looped/vehicle/despawn_bypass.cpp new file mode 100644 index 00000000..98e67743 --- /dev/null +++ b/BigBaseV2/src/backend/looped/vehicle/despawn_bypass.cpp @@ -0,0 +1,11 @@ +#include "backend/looped/looped.hpp" +#include "script_global.hpp" + +namespace big +{ + // allows for spawning unreleased vehicles in online and online vehicles in single player + void looped::vehicle_despawn_bypass() + { + *script_global(4533757).as() = true; + } +} \ No newline at end of file