class WeaponHolder_Single_limited_weapon_F: WeaponHolder_Single_F
{
transportMaxItems = 0;
transportMaxMagazines = 0;
transportMaxWeapons = 1;
model = "\A3\Weapons_F_EPA\DummyWeapon_Single.p3d";
};
transportMaxWeapons = 1; ^^^^
create the weaponholder:
whslw = "WeaponHolder_Single_limited_weapon_F" createVehicle position player;
whslw addWeaponCargoGlobal [currentWeapon player, 1];
Now open it with inventory an put anything you want in it
Remove the gun you placed there initially
It now shows the second item you put in even if it is not a weapon.