Skip to content

OnPlayerMarkersSend

Called before map markers are sent to the client. Allows adding new or manipulating existing markers.

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnPlayerMarkersSend( BasePlayer instance, MapNoteList mapNoteList )
{
    Puts( "OnPlayerMarkersSend works!" );
}

Location

  • BasePlayer::SendMarkersToClient()
csharp
//---
		}
		if (this.State.pointsOfInterest != null)
		{
			mapNoteList.notes.AddRange(this.State.pointsOfInterest);
		}
		Interface.CallHook("OnPlayerMarkersSend", this, mapNoteList);
		base.ClientRPC<MapNoteList>(RpcTarget.Player("Client_ReceiveMarkers", this), mapNoteList);
		mapNoteList.notes.Clear();
	}
}

Released under the MIT License.