diff --git a/addons/attributes/functions/fnc_open.sqf b/addons/attributes/functions/fnc_open.sqf index 202565320..c16ad4267 100644 --- a/addons/attributes/functions/fnc_open.sqf +++ b/addons/attributes/functions/fnc_open.sqf @@ -48,6 +48,11 @@ private _contentPosY = 0; _ctrlLabel ctrlSetText _displayName; _ctrlLabel ctrlSetTooltip _tooltip; + // Get dynamic value info for the control if needed + if (_valueInfo isEqualType {}) then { + _valueInfo = _entity call _valueInfo; + }; + // Execute attribute control specific init function private _function = getText (configFile >> _control >> "function"); [_controlsGroup, _entity call _defaultValue, _valueInfo, _entity] call (missionNamespace getVariable _function); diff --git a/addons/attributes/initAttributes.sqf b/addons/attributes/initAttributes.sqf index 6e0e95170..54e9a6df4 100644 --- a/addons/attributes/initAttributes.sqf +++ b/addons/attributes/initAttributes.sqf @@ -189,7 +189,7 @@ "Object", LSTRING(PlateNumber), QGVAR(edit), - {_this select [0, MAX_PLATE_CHARACTERS]}, + [{_this select [0, MAX_PLATE_CHARACTERS]}], { [QEGVAR(common,setPlateNumber), [_entity, _value], _entity] call CBA_fnc_targetEvent; },