OnPlayerMarkersSend
OxideCarbonPlayerCalled when player markers send occurs.
void OnPlayerMarkersSend(BasePlayer basePlayer, object v0)Works — the game method in this build is the one the hook was written for.
Parameters
- basePlayer
- BasePlayer
- v0
- object
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnPlayerMarkersSend(BasePlayer basePlayer, object v0)
{
Puts("OnPlayerMarkersSend");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
void BasePlayer.SendMarkersToClient()
Passes: BasePlayer basePlayer, object v0
WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, v0)Assembly-CSharp.dll
Where it is called (this branch's game code)
// …
if (ServerCurrentDeathNote != null)
{
mapNoteList.notes.Add(ServerCurrentDeathNote);
}
if (State.pointsOfInterest != null)
{
mapNoteList.notes.AddRange(State.pointsOfInterest);
}
Interface.CallHook("OnPlayerMarkersSend", this, v0);
ClientRPC(RpcTarget.Player("Client_ReceiveMarkers", this), mapNoteList);
mapNoteList.notes.Clear();
}Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.