Skip to content

OnMapMarkerRemove

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnMapMarkerRemove( BasePlayer instance, List`1 pointsOfInterest, int num )
{
    Puts( "OnMapMarkerRemove works!" );
}

Location

  • BasePlayer::Server_RemovePointOfInterest(BaseEntity/RPCMessage msg)
csharp
//---
public void Server_RemovePointOfInterest(BaseEntity.RPCMessage msg)
{
	int num = msg.read.Int32();
	if (this.State.pointsOfInterest != null && this.State.pointsOfInterest.Count > num && num >= 0)
	{
		if (Interface.CallHook("OnMapMarkerRemove", this, this.State.pointsOfInterest, num) != null)
		{
			return;
		}
		this.State.pointsOfInterest[num].Dispose();
		this.State.pointsOfInterest.RemoveAt(num);
//---

Released under the MIT License.