diff --git a/SQF/dayz_code/actions/trade_any_vehicle.sqf b/SQF/dayz_code/actions/trade_any_vehicle.sqf index 1c8e2cad6..8c5efda03 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle.sqf @@ -236,7 +236,7 @@ if (_finished) then { _keyColor = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]; { if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _keyColor) then { - if (getNumber(configFile >> "CfgWeapons" >> _x >> "keyid") == _objectCharacterId) then { + if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _objectCharacterId) then { [_activatingPlayer,_x] call BIS_fnc_invRemove; }; };