OnPlayerReported
OxideCarbonPlayerCalled when a player is reported.
void OnPlayerReported(BasePlayer local1, string local6, string targetId, string local2, string local3, string local5)Method missing — this game build has no method the hook is injected into: until it is updated, the hook is not called.
Parameters
- local1
- BasePlayer
- local6
- string
- targetId
- string
- local2
- string
- local3
- string
- local5
- string
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnPlayerReported(BasePlayer local1, string local6, string targetId, string local2, string local3, string local5)
{
Puts("OnPlayerReported");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
void BasePlayer.<OnPlayerReported>d__778.MoveNext()
Method missingReturnBehavior: ContinueArgumentBehavior: UseArgumentString (l1, l6, this.<targetId>5__2, l2, l3, l5)Assembly-CSharp.dll
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.