ACE3/addons/zeus/functions/fnc_ui_vehCargo.sqf
SilentSpike 4cbded1811 Fix zeus cargo display for empty vehicles
The cargo wasn't displaying for empty vehicles because they use a different display.
2016-05-17 23:44:16 +01:00

17 lines
392 B
Plaintext

#include "script_component.hpp"
params ["_control"];
TRACE_1("params",_control);
private _veh = GETMVAR(BIS_fnc_initCuratorAttributes_target,objnull);
TRACE_1("",_veh);
private _loaded = _veh getVariable [QEGVAR(cargo,loaded), []];
TRACE_1("",_loaded);
lbClear ((ctrlParent _control) displayCtrl 80086);
{
((ctrlParent _control) displayCtrl 80086) lbAdd (str _x);
} forEach _loaded;