OnSignLocked
OxideStructurevoid OnSignLocked(Signage signage, BasePlayer player)
void OnSignLocked(PhotoFrame photoFrame, BasePlayer player)Works — the game method in this build is the one the hook was written for.
Parameters
- signage
- Signage
- player
- BasePlayer
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnSignLocked(Signage signage, BasePlayer player)
{
Puts("OnSignLocked");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point 1
Rust.opj (Oxide)
void Signage.LockSign(BaseEntity.RPCMessage)
Passes: Signage signage, BasePlayer player
WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, a0.player)Assembly-CSharp.dll
Injection point 2
Rust.opj (Oxide)
void PhotoFrame.LockSign(BaseEntity.RPCMessage)
Passes: PhotoFrame photoFrame, 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.