Skip to content

OnRentableShopOpen

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnRentableShopOpen( RentableShop instance, BasePlayer player )
{
    Puts( "OnRentableShopOpen works!" );
    return null;
}

Location

  • RentableShop::Server_OpenStore(BaseEntity.RPCMessage msg)
csharp
private void Server_OpenStore(RPCMessage msg)
{
	if (CanPlayerOpenShop(msg.player) && Interface.CallHook("OnRentableShopOpen", this, msg.player) == null)
	{
		if (IsOn())
		{
			CurrentRentMultiplier++;
			CloseStore();
//---

Released under the MIT License.