OnCarbonLockPlayerContainer
CarbonPlayerCalled when a remote RCON command is received.
Provides access to the raw RCON message so you can log or modify behavior.
void OnCarbonLockPlayerContainer(BasePlayer invoker, BasePlayer target, ItemContainer container, bool locked)Parameters
- invoker
- BasePlayer
- target
- BasePlayer
- container
- ItemContainer
- locked
- bool
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnCarbonLockPlayerContainer(BasePlayer invoker, BasePlayer target, ItemContainer container, bool locked)
{
Puts("OnCarbonLockPlayerContainer");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Carbon
Carbon.Modules.AdminModule.LockPlayerContainer
Inside CarbonCarbon.Common
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.