RustTip

OnSignUpdated

OxideStructure
void OnSignUpdated(Signage signage, BasePlayer player, int int32)
void OnSignUpdated(PhotoFrame photoFrame, BasePlayer player)
void OnSignUpdated(CarvablePumpkin carvablePumpkin, BasePlayer player)
Works — the game method in this build is the one the hook was written for.

Parameters

signage
Signage
player
BasePlayer
int32
int

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnSignUpdated(Signage signage, BasePlayer player, int int32)
{
    Puts("OnSignUpdated");
}

Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.

Injection point 1

Rust.opj (Oxide)
void Signage.UpdateSign(BaseEntity.RPCMessage)

Passes: Signage signage, BasePlayer player, int int32

WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, a0.player, l0)Assembly-CSharp.dll

Injection point 2

Rust.opj (Oxide)
void PhotoFrame.UpdateSign(BaseEntity.RPCMessage)

Passes: PhotoFrame photoFrame, BasePlayer player

WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, a0.player)Assembly-CSharp.dll

Injection point 3

Rust.opj (Oxide)
void CarvablePumpkin.UpdateSign(BaseEntity.RPCMessage)

Passes: CarvablePumpkin carvablePumpkin, BasePlayer player

WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, a0.player)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.