Skip to content

OnCupboardAuthorize

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • VehiclePrivilege::AddSelfAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
	}
	if (!this.IsDriver(rpc.player))
	{
		return;
	}
	if (Interface.CallHook("OnCupboardAuthorize", this, rpc.player) != null)
	{
		return;
	}
	this.AddPlayer(rpc.player);
	base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
//---

Released under the MIT License.