Skip to content

OnRentableShopClose

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnRentableShopClose( RentableShop instance, bool notify )
{
    Puts( "OnRentableShopClose works!" );
    return null;
}

Location

  • RentableShop::CloseStore(bool notify)
csharp
private void CloseStore(bool notify = true)
{
	if (Interface.CallHook("OnRentableShopClose", this, notify) == null)
	{
		using (FlagsUpdateScope flagsUpdateScope = StartSetFlags(FlagsUpdateMode.SendNetworkUpdate))
		{
			flagsUpdateScope.Set(Flags.On, b: false);
		}
//---

Released under the MIT License.