Skip to content

OnRentableShopOpened ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnRentableShopOpened( RentableShop instance, BasePlayer byPlayer )
{
    Puts( "OnRentableShopOpened works!" );
}

Location ​

  • RentableShop::OnShopOpened(BasePlayer byPlayer)
csharp
//---
	int openScrapCost = num;
	byPlayer.inventory.UseAmount(ItemManager.Items.Scrap, num);
	int num2 = Mathf.RoundToInt((float)ScrapPerHourRent * 12f * CurrentRentMultiplier);
	byPlayer.inventory.MoveItemsIntoContainer(ItemManager.Items.Scrap, num2, invisibleVendingMachine.inventory);
	Facepunch.Rust.Analytics.Azure.OnShopOpened(this, openScrapCost, num2);
	Interface.CallHook("OnRentableShopOpened", this, byPlayer);
}

Released under the MIT License.