mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
569 B
Plaintext
16 lines
569 B
Plaintext
#include "script_component.hpp"
|
|
|
|
//Add Event Handlers
|
|
[QGVAR(setupCustomKey), {_this call FUNC(serverSetupCustomKeyEH)}] call CBA_fnc_addEventHandler;
|
|
[QGVAR(setVehicleLock), {_this call FUNC(setVehicleLockEH)}] call CBA_fnc_addEventHandler;
|
|
|
|
if (!hasInterface) exitwith {};
|
|
|
|
["ace_settingsInitialized", {
|
|
TRACE_1("SettingsInitialized eh",GVAR(LockVehicleInventory));
|
|
|
|
if (GVAR(LockVehicleInventory)) then {
|
|
["CAManBase", "InventoryOpened", {_this call FUNC(onOpenInventory);}] call CBA_fnc_addClassEventHandler;
|
|
};
|
|
}] call CBA_fnc_addEventHandler;
|