© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
39 replies
Pouncer012

Rust Game Plugin Help Plz

Getting a compiler error:
Error while compiling AutoLoot: There is no argument given that corresponds to the required parameter 'key' of 'CollectionExtensions.Remove<TKey, TValue>(IDictionary<TKey, TValue>, TKey, out TValue)' | Line: 617, Pos: 28

Line 617 of my plugin: itemPickup.Remove();

The snippet:
private bool TryPickupItemStackedFirst(BasePlayer player, IPlayer iplayer, ItemPickup itemPickup)
{
if (itemPickup == null !IsAllowedToPickup(itemPickup.item.info.shortname)) return false;
if (itemPickup.item == null || (config.UseLootFilter && !IsItemAllowedToPlayer(iplayer, itemPickup.item.info.shortname))) return false;

var item = itemPickup.item;
if (item == null) return false;

var moved = GiveItemToPlayerPrioritized(player, item);
if (moved)
{
itemPickup.Remove();
AddLootToSession(player.userID, item.info.shortname, item.amount);
return true;
}
return false;
}

Not sure how to overcome this as itemPickup.Remove is just running a Prioritized function the player has specified on their own.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Help. Broken Rust plugin
C#CC# / help
16mo ago
C# Plugin for Rust Game; Error; Not Understanding
C#CC# / help
2w ago
help plz
C#CC# / help
2y ago
❔ Plz help
C#CC# / help
3y ago