vMenu
vMenu copied to clipboard
Addon Weapons are not included in Loadouts
trafficstars
After writing the Addon Weapons menu under weapon options, I realized they're not spawnable using the Weapon Loadouts. I opened up the Weapon Loadouts.cs and idk wtf is going on there. If the addon weapons could be added so that they're spawnable with the loadouts, that would be pretty cool. I guessing it has to do with this code, but this is above my coding ability:
{
var handle = StartFindKvp("vmenu_string_saved_weapon_loadout_");
var saves = new Dictionary<string, List<ValidWeapon>>();
while (true)
{
var kvp = FindKvp(handle);
if (string.IsNullOrEmpty(kvp))
{
break;
}
saves.Add(kvp, JsonConvert.DeserializeObject<List<ValidWeapon>>(GetResourceKvpString(kvp)));
}
EndFindKvp(handle);
return saves;
}