Skip to content

OnCupboardClearList

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnCupboardClearList( VehiclePrivilege instance, BasePlayer player )
{
    Puts( "OnCupboardClearList works!" );
}

Location

  • VehiclePrivilege::ClearList(BaseEntity/RPCMessage rpc)
csharp
//---
	}
	if (!this.IsDriver(rpc.player))
	{
		return;
	}
	if (Interface.CallHook("OnCupboardClearList", this, rpc.player) != null)
	{
		return;
	}
	this.authorizedPlayers.Clear();
	base.UpdateMaxAuthCapacity();
//---

Released under the MIT License.