OnCupboardDeauthorize
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnCupboardDeauthorize( VehiclePrivilege instance, BasePlayer player )
{
Puts( "OnCupboardDeauthorize works!" );
}Location
- VehiclePrivilege::RemoveSelfAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
}
if (!this.IsDriver(rpc.player))
{
return;
}
if (Interface.CallHook("OnCupboardDeauthorize", this, rpc.player) != null)
{
return;
}
this.authorizedPlayers.Remove(rpc.player.userID);
Facepunch.Rust.Analytics.Azure.OnEntityAuthChanged(this, rpc.player, this.authorizedPlayers, "removed", rpc.player.userID);
//---