Skip to content

OnDefaultItemsReceived ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnDefaultItemsReceived( PlayerInventory instance )
{
    Puts( "OnDefaultItemsReceived works!" );
}

Location ​

  • PlayerInventory::GiveDefaultItems()
csharp
//---
	{
		TryGiveItem("snowball", 0uL, containerBelt);
		TryGiveItem("snowball", 0uL, containerBelt);
		TryGiveItem("snowball", 0uL, containerBelt);
	}
	Interface.CallHook("OnDefaultItemsReceived", this);
	defaultItemsAwaitingSkins = baseEntity.IsConnected && !baseEntity.blueprints.steamInventory.IsLoaded;
	void GiveDefaultItemWithSkin(string convarSkinName, string itemShortName)
	{
		ulong num = 0uL;
		int infoInt = baseEntity.GetInfoInt(convarSkinName, 0);
//---

Released under the MIT License.