diff --git a/addons/main/CfgFunctions.hpp b/addons/main/CfgFunctions.hpp index 894bba4..825faa1 100644 --- a/addons/main/CfgFunctions.hpp +++ b/addons/main/CfgFunctions.hpp @@ -22,7 +22,7 @@ class CfgFunctions class EHGetOut {}; class EHHandleDisconnect {}; class EHKilled {}; - class registerCBASettings {preInit = 1}; + class registerCBASettings {}; class weaponHolder {}; class whitelist {}; class isWhitelisted {}; diff --git a/addons/main/config.cpp b/addons/main/config.cpp index 31330bc..c808a66 100644 --- a/addons/main/config.cpp +++ b/addons/main/config.cpp @@ -15,3 +15,9 @@ class CfgPatches #include "CfgVehicles.hpp" #include "CfgFunctions.hpp" + +class Extended_PreInit_EventHandlers { + class grad_slingHelmet_main { + init = "[] call GRAD_slingHelmet_fnc_registerCBASettings"; + }; +}; \ No newline at end of file