/* File : fn_updateGangTrunk.sqf Author: NiiRoZz Description: Update inventory "y" in container */ _container = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull _container) exitWith {}; _trunkData = _container getVariable ["Trunk",[[],0]]; private _containerID = switch (_container) do { case con_b: {1}; case con_d: {2}; case con_a: {3}; case con_e: {4}; case con_h: {5}; default {-1}; }; if (_containerID isEqualTo -1) exitWith {}; //Dafuq? _trunkData = [_trunkData] call DB_fnc_mresArray; _query = format ["UPDATE gangcontainers SET inventory='%1' WHERE id='%2'",_trunkData,_containerID]; [_query,1] call DB_fnc_asyncCall;