ACE3/addons/towing/initSettings.sqf
Dystopian 20fb895b31
Towing - Add rope to vehicle inventory (#8963)
* Add rope to vehicle inventory

* Use LINKFUNC

* Make setting not need restart

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2022-08-29 02:24:24 +02:00

14 lines
595 B
Plaintext

[
QGVAR(addRopeToVehicleInventory), "CHECKBOX",
LSTRING(Setting_addRopeToVehicleInventory_DisplayName),
LELSTRING(OptionsMenu,CategoryLogistics),
true,
true,
{
if !(_this && {isServer} && {isNil QGVAR(addRopeToVehicleInventory_initialized)}) exitWith {};
GVAR(addRopeToVehicleInventory_initialized) = true;
["Tank", "initPost", LINKFUNC(addRopeToVehicle), true, [], true] call CBA_fnc_addClassEventHandler;
["Car", "initPost", LINKFUNC(addRopeToVehicle), true, [], true] call CBA_fnc_addClassEventHandler;
}
] call CBA_fnc_addSetting;