781 Oxide hooks and Carbon hooks for Rust plugins with their parameters, what returning a value does, and whether Oxide and Carbon call them. Pick a category or search them all, and copy a ready method with one click.

Rust build 26921919 · 25 November 2026

Oxide & Carbon Hooks 43Player169

CanAssignBed

OxideCarbon
void CanAssignBed(BasePlayer player, SleepingBag sleepingBag, ulong local0)

Returns nothing: it only tells you something happened. Called from SleepingBag.AssignToFriend.

CanBeSplashed

OxideCarbon
object CanBeSplashed(BasePlayer basePlayer, ItemDefinition splashType, int amount)

Return a non-null value to override what the game does; return null to let it continue. Called from BasePlayer.WantsSplash.

CanBeTargeted

OxideCarbon
object CanBeTargeted(BaseCombatEntity obj, AutoTurret autoTurret)

Return a non-null value to override what the game does; return null to let it continue. Called from AutoTurret.ObjectVisible, HelicopterTurret.InFiringArc.

CanBeTargeted [patch]

OxideCarbon
void CanBeTargeted [patch]()

Returns nothing: it only tells you something happened. Called from FlameTurret.CheckTrigger.

CanBeWounded

OxideCarbon
object CanBeWounded(BasePlayer basePlayer)

Return a non-null value to override what the game does; return null to let it continue. Called from BasePlayer.EligibleForWounding.

CanBypassQueue

OxideCarbon
object CanBypassQueue()

Return a non-null value to override what the game does; return null to let it continue. Called from ConnectionQueue.CanJumpQueue.

CanChangeCode

OxideCarbon
void CanChangeCode(BasePlayer player, CodeLock codeLock, string local0, bool local1)

Returns nothing: it only tells you something happened. Called from CodeLock.RPC_ChangeCode.

CanClientLogin

OxideCarbon
void CanClientLogin(Connection connection)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnUserApprove.

CanDismountEntity

OxideCarbon
void CanDismountEntity(BasePlayer player, BaseMountable baseMountable)

Returns nothing: it only tells you something happened. Called from BaseMountable.DismountPlayer.

CanDropActiveItem

OxideCarbon
object CanDropActiveItem(BasePlayer basePlayer)

Return a non-null value to override what the game does; return null to let it continue. Called from BasePlayer.ShouldDropActiveItem.

CanHackCrate

OxideCarbon
void CanHackCrate(BasePlayer player, HackableLockedCrate hackableLockedCrate)

Returns nothing: it only tells you something happened. Called from HackableLockedCrate.RPC_Hack.

CanHideStash

OxideCarbon
void CanHideStash(BasePlayer player, StashContainer stashContainer)

Returns nothing: it only tells you something happened. Called from StashContainer.RPC_HideStash.

CanLock

OxideCarbon
void CanLock(BasePlayer player, CodeLock codeLock)

Returns nothing: it only tells you something happened. Called from CodeLock.TryLock, KeyLock.Lock.

CanLootPlayer

OxideCarbon
object CanLootPlayer(BasePlayer basePlayer)

Return a non-null value to override what the game does; return null to let it continue. Called from BasePlayer.CanBeLooted.

CanMountEntity

OxideCarbon
void CanMountEntity(BasePlayer player, BaseMountable baseMountable)

Returns nothing: it only tells you something happened. Called from BaseMountable.MountPlayer.

CanNetworkTo

OxideCarbon
object CanNetworkTo(BasePlayer basePlayer)

Return a non-null value to override what the game does; return null to let it continue. Called from BasePlayer.ShouldNetworkTo, BaseNetworkable.ShouldNetworkTo.

CanPickupEntity

OxideCarbon
object CanPickupEntity(BasePlayer player, BaseCombatEntity baseCombatEntity)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseCombatEntity.CanCompletePickup.

CanPickupLock

OxideCarbon
void CanPickupLock(BasePlayer player, BaseLock baseLock)

Returns nothing: it only tells you something happened. Called from BaseLock.RPC_TakeLock.

CanRagdollDismount

OxideCarbon
object CanRagdollDismount(BaseRagdoll baseRagdoll, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseRagdoll.AllowPlayerInstigatedDismount.

CanRenameBed

OxideCarbon
void CanRenameBed(BasePlayer player, SleepingBag sleepingBag, string local0)

Returns nothing: it only tells you something happened. Called from SleepingBag.Rename.

CanResearchItem

OxideCarbon
void CanResearchItem(BasePlayer local0, Item local1)

Returns nothing: it only tells you something happened. Called from ResearchTable.DoResearch.

CanSetBedPublic

OxideCarbon
void CanSetBedPublic(BasePlayer player, SleepingBag sleepingBag)

Returns nothing: it only tells you something happened. Called from SleepingBag.RPC_MakePublic.

CanSetRelationship

OxideCarbon
void CanSetRelationship(BasePlayer player, BasePlayer otherPlayer, RelationshipManager.RelationshipType type, int weight)

Returns nothing: it only tells you something happened. Called from RelationshipManager.SetRelationship.

CanSpectateTarget

OxideCarbon
void CanSpectateTarget(BasePlayer basePlayer, string strName)

Returns nothing: it only tells you something happened. Called from BasePlayer.UpdateSpectateTarget.

CanSwapToSeat

OxideCarbon
object CanSwapToSeat(BasePlayer player, BaseMountable baseMountable)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseMountable.CanSwapToThis, ModularCarSeat.CanSwapToThis.

CanTakeCutting

OxideCarbon
void CanTakeCutting(BasePlayer player, GrowableEntity growableEntity)

Returns nothing: it only tells you something happened. Called from GrowableEntity.TakeClones.

CanUnlock

OxideCarbon
void CanUnlock(BasePlayer player, CodeLock codeLock)

Returns nothing: it only tells you something happened. Called from CodeLock.TryUnlock, KeyLock.RPC_Unlock.

CanUpdateSign

OxideCarbon
object CanUpdateSign(BasePlayer player, Signage signage)

Return a non-null value to override what the game does; return null to let it continue. Called from Signage.CanUpdateSign, PhotoFrame.CanUpdateSign.

CanUseGesture

OxideCarbon
object CanUseGesture(BasePlayer player, GestureConfig gestureConfig)

Return a non-null value to override what the game does; return null to let it continue. Called from GestureConfig.IsOwnedBy.

CanUseHBHFSensor

OxideCarbon
object CanUseHBHFSensor(BasePlayer player, HBHFSensor hBHFSensor)

Return a non-null value to override what the game does; return null to let it continue. Called from HBHFSensor.CanUse.

CanUseLockedEntity

OxideCarbon
object CanUseLockedEntity(BasePlayer player, CodeLock codeLock)

Return a non-null value to override what the game does; return null to let it continue. Called from CodeLock.OnTryToOpen, CodeLock.OnTryToClose.

CanUseMailbox

OxideCarbon
object CanUseMailbox(BasePlayer player, Mailbox mailbox)

Return a non-null value to override what the game does; return null to let it continue. Called from Mailbox.PlayerIsOwner.

CanUseWires

OxideCarbon
object CanUseWires()

Return a non-null value to override what the game does; return null to let it continue. Called from WireTool.CanPlayerUseWires.

CanUserLogin

OxideCarbon
void CanUserLogin(string username, string userid, string ip)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnUserApprove.

OnActiveItemChange

OxideCarbon
void OnActiveItemChange(BasePlayer basePlayer, Item local1, ItemId itemID)

Returns nothing: it only tells you something happened. Called from BasePlayer.UpdateActiveItem.

OnActiveItemChanged

OxideCarbon
void OnActiveItemChanged(BasePlayer basePlayer, Item local1, Item local2)

Returns nothing: it only tells you something happened. Called from BasePlayer.UpdateActiveItem.

OnActiveTelephoneUpdated

OxideCarbon
void OnActiveTelephoneUpdated(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.SetActiveTelephone.

OnCarbonBanPlayer

Carbon
void OnCarbonBanPlayer(BasePlayer invoker, BasePlayer target, string reason, long expiry)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.BanPlayer.

OnCarbonBlinded

Carbon
void OnCarbonBlinded(BasePlayer invoker, BasePlayer target)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.BlindPlayer.

OnCarbonEmpowerPlayerStats

Carbon
void OnCarbonEmpowerPlayerStats(BasePlayer invoker, BasePlayer target)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.EmpowerPlayerStats.

OnCarbonKickPlayer

Carbon
void OnCarbonKickPlayer(BasePlayer invoker, BasePlayer target, string reason)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.KickPlayer.

OnCarbonLockPlayerContainer

Carbon
void OnCarbonLockPlayerContainer(BasePlayer invoker, BasePlayer target, ItemContainer container, bool locked)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.LockPlayerContainer.

OnCarbonMutePlayer

Carbon
void OnCarbonMutePlayer(BasePlayer invoker, BasePlayer target, bool wants, string reason)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.MutePlayer.

OnCarbonPrivateMessage

Carbon
void OnCarbonPrivateMessage(BasePlayer player, BasePlayer target, string message)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.PrivateMessagePlayer.

OnCarbonSpectateEnd

Carbon
void OnCarbonSpectateEnd(BasePlayer player, BasePlayer target)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.StopSpectating.

OnCarbonSpectateStart

Carbon
void OnCarbonSpectateStart(BasePlayer player, BasePlayer target)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.StartSpectating.

OnCarbonUnbanPlayer

Carbon
void OnCarbonUnbanPlayer(BasePlayer invoker, BasePlayer target)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.UnbanPlayer.

OnCarbonUnblinded

Carbon
void OnCarbonUnblinded(BasePlayer invoker, BasePlayer target)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule.UnblindPlayer.

OnCentralizedBanCheck

OxideCarbon
void OnCentralizedBanCheck()

Returns nothing: it only tells you something happened. Called from Auth_CentralizedBans/<Run>d__0.MoveNext.

OnClientAuth

OxideCarbon
void OnClientAuth(Connection connection)

Returns nothing: it only tells you something happened. Called from ServerMgr.OnGiveUserInformation.

OnClientCommand

OxideCarbon
void OnClientCommand(Connection connection, string local0)

Returns nothing: it only tells you something happened. Called from ConsoleNetwork.OnClientCommand.

OnClientDisconnect

OxideCarbon
void OnClientDisconnect(Connection connection, string local0)

Returns nothing: it only tells you something happened. Called from ServerMgr.ReadDisconnectReason.

OnClientDisconnected

OxideCarbon
void OnClientDisconnected(Connection cn, string strReason)

Returns nothing: it only tells you something happened. Called from Network.Server.OnDisconnected.

OnClientProjectileEffectCreate

OxideCarbon
void OnClientProjectileEffectCreate(Connection sourceConnection, BaseProjectile baseProjectile, string prefabName)

Returns nothing: it only tells you something happened. Called from BaseProjectile.CreateProjectileEffectClientside.

OnClothingItemChanged

OxideCarbon
void OnClothingItemChanged(PlayerInventory playerInventory, Item item, bool bAdded)

Returns nothing: it only tells you something happened. Called from PlayerInventory.OnClothingChanged.

OnCuttingTake

OxideCarbon
void OnCuttingTake(GrowableEntity growableEntity, BasePlayer player, Item local1)

Returns nothing: it only tells you something happened. Called from GrowableEntity.TakeClones.

OnCuttingTaken

OxideCarbon
void OnCuttingTaken(GrowableEntity growableEntity, BasePlayer player, Item local1)

Returns nothing: it only tells you something happened. Called from GrowableEntity.TakeClones.

OnDefaultItemsReceive

OxideCarbon
void OnDefaultItemsReceive(PlayerInventory playerInventory)

Returns nothing: it only tells you something happened. Called from PlayerInventory.GiveDefaultItems.

OnDefaultItemsReceived

OxideCarbon
void OnDefaultItemsReceived(PlayerInventory playerInventory)

Returns nothing: it only tells you something happened. Called from PlayerInventory.GiveDefaultItems.

OnDemoRecordingStart

OxideCarbon
void OnDemoRecordingStart(string local0, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.StartServerDemoRecording.

OnDemoRecordingStarted

OxideCarbon
void OnDemoRecordingStarted(string local0, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.StartServerDemoRecording.

OnDemoRecordingStop

OxideCarbon
void OnDemoRecordingStop(string recordFilename, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.StopServerDemoRecording.

OnDemoRecordingStopped

OxideCarbon
void OnDemoRecordingStopped(string recordFilename, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.StopServerDemoRecording.

OnEntityMounted

OxideCarbon
void OnEntityMounted(BaseMountable baseMountable)

Returns nothing: it only tells you something happened. Called from BaseMountable.MountPlayer.

OnExperimentEnd

OxideCarbon
void OnExperimentEnd(Workbench workbench)

Returns nothing: it only tells you something happened. Called from Workbench.ExperimentComplete.

OnExperimentEnded

OxideCarbon
void OnExperimentEnded(Workbench workbench)

Returns nothing: it only tells you something happened. Called from Workbench.ExperimentComplete.

OnExperimentStart

OxideCarbon
void OnExperimentStart(Workbench workbench, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from Workbench.RPC_BeginExperiment.

OnExperimentStarted

OxideCarbon
void OnExperimentStarted(Workbench workbench, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from Workbench.RPC_BeginExperiment.

OnEyePosValidate

OxideCarbon
object OnEyePosValidate(AttackEntity attackEntity, BasePlayer player, Vector3 eyePos, bool checkLineOfSight)

Return a non-null value to override what the game does; return null to let it continue. Called from AttackEntity.ValidateEyePos.

OnFeedbackReported

OxideCarbon
void OnFeedbackReported(BasePlayer local1, string local2, string local3, ReportType local5)

Returns nothing: it only tells you something happened. Called from BasePlayer/<OnFeedbackReport>d__801.MoveNext.

OnFindSpawnPoint

OxideCarbon
object OnFindSpawnPoint()

Return a non-null value to override what the game does; return null to let it continue. Called from ServerMgr.FindSpawnPoint.

OnFogOfWarCleared

OxideCarbon
void OnFogOfWarCleared(BasePlayer basePlayer, bool mainland, bool deepSea)

Returns nothing: it only tells you something happened. Called from BasePlayer.ServerClearFog.

OnFogOfWarImageUpdate

OxideCarbon
void OnFogOfWarImageUpdate(BasePlayer basePlayer, uint local0, uint local1, Byte[] local2)

Returns nothing: it only tells you something happened. Called from BasePlayer.FogImageUpdate.

OnFogOfWarStale

OxideCarbon
void OnFogOfWarStale(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.OnFogOfWarStale.

OnInventoryNetworkUpdate

OxideCarbon
void OnInventoryNetworkUpdate(PlayerInventory playerInventory, ItemContainer container, UpdateItemContainer local0, PlayerInventory.Type type, PlayerInventory.NetworkInventoryMode mode)

Returns nothing: it only tells you something happened. Called from PlayerInventory.SendUpdatedInventoryInternal.

OnLootEntity

OxideCarbon
void OnLootEntity(PlayerLoot playerLoot, BaseEntity targetEntity)

Returns nothing: it only tells you something happened. Called from PlayerLoot.StartLootingEntity.

OnLootEntityEnd

OxideCarbon
void OnLootEntityEnd(BasePlayer player, LootableCorpse lootableCorpse)

Returns nothing: it only tells you something happened. Called from LootableCorpse.PlayerStoppedLooting, StorageContainer.PlayerStoppedLooting.

OnLootItem

OxideCarbon
void OnLootItem(PlayerLoot playerLoot, Item item)

Returns nothing: it only tells you something happened. Called from PlayerLoot.StartLootingItem.

OnLootNetworkUpdate

OxideCarbon
void OnLootNetworkUpdate(PlayerLoot playerLoot)

Returns nothing: it only tells you something happened. Called from PlayerLoot.SendUpdate.

OnLootPlayer

OxideCarbon
void OnLootPlayer(BasePlayer basePlayer, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.RPC_LootPlayer.

OnMapMarkerAdd

OxideCarbon
void OnMapMarkerAdd()

Returns nothing: it only tells you something happened. Called from BasePlayer.Server_AddMarker.

OnMapMarkerAdd [patch]

OxideCarbon
void OnMapMarkerAdd [patch]()

Returns nothing: it only tells you something happened. Called from BasePlayer.Server_AddMarker.

OnMapMarkerAdded

OxideCarbon
void OnMapMarkerAdded(BasePlayer basePlayer, MapNote local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.Server_AddMarker.

OnMapMarkerRemove

OxideCarbon
void OnMapMarkerRemove(BasePlayer basePlayer, MapNote] pointsOfInterest, int local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.Server_RemovePointOfInterest.

OnMapMarkersClear

OxideCarbon
void OnMapMarkersClear(BasePlayer basePlayer, MapNote] pointsOfInterest)

Returns nothing: it only tells you something happened. Called from BasePlayer.Server_ClearMapMarkers.

OnMapMarkersCleared

OxideCarbon
void OnMapMarkersCleared(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.Server_ClearMapMarkers.

OnMeleeAttack

OxideCarbon
void OnMeleeAttack(BasePlayer local0, HitInfo local3)

Returns nothing: it only tells you something happened. Called from BaseMelee.PlayerAttack.

OnMetalDetectorFlagRequest

OxideCarbon
void OnMetalDetectorFlagRequest(BaseMetalDetector baseMetalDetector, Vector3 local1, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from BaseMetalDetector.RPC_RequestFlag.

OnPayForPlacement

OxideCarbon
void OnPayForPlacement(BasePlayer player, Planner planner, Construction component)

Returns nothing: it only tells you something happened. Called from Planner.PayForPlacement, WallpaperPlanner.PayForPlacement.

OnPayForUpgrade

OxideCarbon
void OnPayForUpgrade(BasePlayer player, BuildingBlock buildingBlock, ConstructionGrade g)

Returns nothing: it only tells you something happened. Called from BuildingBlock.PayForUpgrade.

OnPlayerActiveShieldDrop

OxideCarbon
void OnPlayerActiveShieldDrop(BasePlayer player, Shield local0)

Returns nothing: it only tells you something happened. Called from PlayerBelt.DropActive.

OnPlayerAddModifiers

OxideCarbon
void OnPlayerAddModifiers()

Returns nothing: it only tells you something happened. Called from ItemModConsume.DoAction.

OnPlayerAssist

OxideCarbon
void OnPlayerAssist(BasePlayer basePlayer, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BasePlayer.RPC_Assist.

OnPlayerAttack

OxideCarbon
void OnPlayerAttack(BaseMelee baseMelee, HitInfo info)

Returns nothing: it only tells you something happened. Called from BaseMelee.DoAttackShared, BasePlayer.OnProjectileAttack.

OnPlayerBanned

OxideCarbon
void OnPlayerBanned(Connection connection, string reason)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerBanned, EACServer.OnClientActionRequired.

OnPlayerChat

OxideCarbon
void OnPlayerChat(BasePlayer player, string message, Chat.ChatChannel channel)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerChat.

OnPlayerColliderEnable

OxideCarbon
void OnPlayerColliderEnable(BasePlayer basePlayer, CapsuleCollider playerCollider)

Returns nothing: it only tells you something happened. Called from BasePlayer.EnablePlayerCollider.

OnPlayerCommand

OxideCarbon
void OnPlayerCommand(BasePlayer player, string command, String[] args)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerCommand.

OnPlayerConnected

OxideCarbon
void OnPlayerConnected(BasePlayer player)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerConnected.

OnPlayerCorpseSpawn

OxideCarbon
void OnPlayerCorpseSpawn()

Returns nothing: it only tells you something happened. Called from BasePlayer.CreateCorpse.

OnPlayerCorpseSpawned

OxideCarbon
void OnPlayerCorpseSpawned(BasePlayer basePlayer, PlayerCorpse local3)

Returns nothing: it only tells you something happened. Called from BasePlayer.CreateCorpse.

OnPlayerDeath

OxideCarbon
void OnPlayerDeath(BasePlayer basePlayer, HitInfo info)

Returns nothing: it only tells you something happened. Called from BasePlayer.Die.

OnPlayerDig

OxideCarbon
void OnPlayerDig(BasePlayer player, BaseDiggableEntity baseDiggableEntity)

Returns nothing: it only tells you something happened. Called from BaseDiggableEntity.Dig.

OnPlayerDigComplete

OxideCarbon
void OnPlayerDigComplete(BasePlayer player, BaseDiggableEntity baseDiggableEntity)

Returns nothing: it only tells you something happened. Called from BaseDiggableEntity.OnFullyDug, MetalDetectorFlag.OnFullyDug.

OnPlayerDisconnected

OxideCarbon
void OnPlayerDisconnected(BasePlayer local0, string strReason)

Returns nothing: it only tells you something happened. Called from ServerMgr.OnDisconnected.

OnPlayerDismountFailed

OxideCarbon
void OnPlayerDismountFailed(BasePlayer local0, BaseMountable baseMountable)

Returns nothing: it only tells you something happened. Called from BaseMountable.RPC_WantsDismount.

OnPlayerDrink

OxideCarbon
void OnPlayerDrink(BasePlayer player, LiquidContainer liquidContainer)

Returns nothing: it only tells you something happened. Called from LiquidContainer.SVDrink.

OnPlayerDropActiveItem

OxideCarbon
void OnPlayerDropActiveItem(BasePlayer player, Item local1)

Returns nothing: it only tells you something happened. Called from PlayerBelt.DropActive.

OnPlayerHandcuff

OxideCarbon
void OnPlayerHandcuff()

Returns nothing: it only tells you something happened. Called from Handcuffs.SV_HandcuffVictim.

OnPlayerHandcuffed

OxideCarbon
void OnPlayerHandcuffed()

Returns nothing: it only tells you something happened. Called from Handcuffs.SV_HandcuffVictim.

OnPlayerHealthChange

OxideCarbon
void OnPlayerHealthChange(BasePlayer basePlayer, float oldvalue, float newvalue)

Returns nothing: it only tells you something happened. Called from BasePlayer.OnHealthChanged.

OnPlayerInput

OxideCarbon
void OnPlayerInput(BasePlayer basePlayer, InputState serverInput)

Returns nothing: it only tells you something happened. Called from BasePlayer.OnReceiveTick.

OnPlayerKeepAlive

OxideCarbon
void OnPlayerKeepAlive(BasePlayer basePlayer, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BasePlayer.RPC_KeepAlive.

OnPlayerKicked

OxideCarbon
void OnPlayerKicked(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.Kick, EACServer.OnClientActionRequired.

OnPlayerLand

OxideCarbon
void OnPlayerLand(BasePlayer basePlayer, float local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.ApplyFallDamageFromVelocity.

OnPlayerLanded

OxideCarbon
void OnPlayerLanded(BasePlayer basePlayer, float local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.ApplyFallDamageFromVelocity.

OnPlayerLanguageChanged

OxideCarbon
void OnPlayerLanguageChanged(BasePlayer player, string var)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnPlayerSetInfo.

OnPlayerLootEnd

OxideCarbon
void OnPlayerLootEnd(PlayerLoot playerLoot)

Returns nothing: it only tells you something happened. Called from PlayerLoot.Clear.

OnPlayerMarkersSend

OxideCarbon
void OnPlayerMarkersSend(BasePlayer basePlayer, MapNoteList local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.SendMarkersToClient.

OnPlayerMetabolize

OxideCarbon
void OnPlayerMetabolize(PlayerMetabolism playerMetabolism, BaseCombatEntity ownerEntity, float delta)

Returns nothing: it only tells you something happened. Called from PlayerMetabolism.ServerUpdate.

OnPlayerOfflineChat

OxideCarbon
void OnPlayerOfflineChat(ulong playerid, string username, string message, Chat.ChatChannel channel)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnPlayerOfflineChat.

OnPlayerPingsSend

OxideCarbon
void OnPlayerPingsSend(BasePlayer basePlayer, MapNoteList local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.SendPingsToClient.

OnPlayerRecover

OxideCarbon
void OnPlayerRecover(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.RecoverFromWounded.

OnPlayerRecovered

OxideCarbon
void OnPlayerRecovered(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.RecoverFromWounded.

OnPlayerReported

OxideCarbon
void OnPlayerReported(BasePlayer local1, string local6, string targetId, string local2, string local3, string local5)

Returns nothing: it only tells you something happened. Called from BasePlayer/<OnPlayerReported>d__800.MoveNext.

OnPlayerRespawn

OxideCarbon
object OnPlayerRespawn(BasePlayer basePlayer, BasePlayer.SpawnPoint local0)

Can return a value (SpawnPoint); return null to keep the default behaviour. Called from BasePlayer.Respawn, SleepingBag.SpawnPlayer.

OnPlayerRespawned

OxideCarbon
void OnPlayerRespawned(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.RespawnAt.

OnPlayerRevive

OxideCarbon
void OnPlayerRevive(BasePlayer fromPlayer, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.OnMedicalToolApplied.

OnPlayerSetInfo

OxideCarbon
void OnPlayerSetInfo(Connection connection, string name, string value)

Returns nothing: it only tells you something happened. Called from ServerMgr.ClientReady, BasePlayer.SetInfo.

OnPlayerSleep

OxideCarbon
void OnPlayerSleep(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.StartSleeping.

OnPlayerSleepEnd

OxideCarbon
void OnPlayerSleepEnd(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.EndSleeping.

OnPlayerSleepEnded

OxideCarbon
void OnPlayerSleepEnded(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.EndSleeping.

OnPlayerSpawn

OxideCarbon
void OnPlayerSpawn()

Returns nothing: it only tells you something happened. Called from ServerMgr.SpawnNewPlayer.

OnPlayerSpectate

OxideCarbon
void OnPlayerSpectate(BasePlayer basePlayer, string spectateFilter)

Returns nothing: it only tells you something happened. Called from BasePlayer.StartSpectating.

OnPlayerSpectateEnd

OxideCarbon
void OnPlayerSpectateEnd(BasePlayer basePlayer, string spectateFilter)

Returns nothing: it only tells you something happened. Called from BasePlayer.StopSpectating.

OnPlayerStudyBlueprint

OxideCarbon
void OnPlayerStudyBlueprint(BasePlayer player, Item item)

Returns nothing: it only tells you something happened. Called from ItemModStudyBlueprint.ServerCommand.

OnPlayerTick

OxideCarbon
void OnPlayerTick(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.OnReceiveTick.

OnPlayerUnbanned

OxideCarbon
void OnPlayerUnbanned(string playerName, ulong steamId, string address)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnServerUserRemove.

OnPlayerUnvanish

OxideCarbon
void OnPlayerUnvanish(BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ConVar.Debugging.invis.

OnPlayerUnvanished

OxideCarbon
void OnPlayerUnvanished(BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ConVar.Debugging.invis.

OnPlayerVanish

OxideCarbon
void OnPlayerVanish(BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ConVar.Debugging.invis.

OnPlayerVanished

OxideCarbon
void OnPlayerVanished(BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ConVar.Debugging.invis.

OnPlayerViolation

OxideCarbon
void OnPlayerViolation()

Returns nothing: it only tells you something happened. Called from AntiHack.AddViolation.

OnPlayerVoice

OxideCarbon
void OnPlayerVoice(BasePlayer local0, Byte] local1)

Returns nothing: it only tells you something happened. Called from ServerMgr.OnPlayerVoice.

OnPlayerWantsDismount

OxideCarbon
void OnPlayerWantsDismount(BasePlayer local0, BaseMountable baseMountable)

Returns nothing: it only tells you something happened. Called from BaseMountable.RPC_WantsDismount.

OnPlayerWantsMount

OxideCarbon
void OnPlayerWantsMount(BasePlayer player, BaseMountable baseMountable)

Returns nothing: it only tells you something happened. Called from BaseMountable.WantsMount.

OnPlayerWound

OxideCarbon
void OnPlayerWound(BasePlayer basePlayer, HitInfo info)

Returns nothing: it only tells you something happened. Called from BasePlayer.BecomeWounded.

OnPortalUse

OxideCarbon
void OnPortalUse(BasePlayer player, BasePortal basePortal)

Returns nothing: it only tells you something happened. Called from BasePortal.UsePortal.

OnPortalUsed

OxideCarbon
void OnPortalUsed(BasePlayer player, BasePortal basePortal)

Returns nothing: it only tells you something happened. Called from BasePortal.UsePortal.

OnRespawnInformationGiven

OxideCarbon
void OnRespawnInformationGiven(BasePlayer basePlayer, RespawnInformation.SpawnOptions] local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.SendRespawnOptions.

OnRunPlayerMetabolism

OxideCarbon
void OnRunPlayerMetabolism(PlayerMetabolism playerMetabolism)

Returns nothing: it only tells you something happened. Called from PlayerMetabolism.RunMetabolism.

OnSendModelState

OxideCarbon
void OnSendModelState()

Returns nothing: it only tells you something happened. Called from BasePlayer.SendModelState.

OnSignalBroadcast

OxideCarbon
void OnSignalBroadcast(BaseEntity baseEntity, Connection sourceConnection, BaseEntity.Signal signal, string arg)

Returns nothing: it only tells you something happened. Called from BaseEntity.SignalBroadcast.

OnSpinWheel

OxideCarbon
void OnSpinWheel(BasePlayer player, SpinnerWheel spinnerWheel)

Returns nothing: it only tells you something happened. Called from SpinnerWheel.RPC_Spin.

OnSteamInventoryUpdated

OxideCarbon
void OnSteamInventoryUpdated(SteamInventory local1)

Returns nothing: it only tells you something happened. Called from SteamInventory/<UpdateSteamInventory>d__11.MoveNext.

OnThreatLevelUpdate

OxideCarbon
void OnThreatLevelUpdate(BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.EnsureUpdated.

OnUserApprove

OxideCarbon
void OnUserApprove(Connection connection)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnUserApprove.

OnUserApproved

OxideCarbon
void OnUserApproved(string username, string userid, string ip)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnUserApprove.

OnUserBanned

OxideCarbon
void OnUserBanned(string playerName, string playerId, string address, string reason, long expiry)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnServerUserSet.

OnUserChat

OxideCarbon
void OnUserChat(IPlayer player, string message)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerChat.

OnUserCommand

OxideCarbon
void OnUserCommand(BasePlayer player, string command, String[] args)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerCommand.

OnUserConnected

OxideCarbon
void OnUserConnected(IPlayer player)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnPlayerConnected.

OnUserDisconnected

OxideCarbon
void OnUserDisconnected(IPlayer player, string reason)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnPlayerDisconnected.

OnUserKicked

OxideCarbon
void OnUserKicked(IPlayer player, string reason)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnPlayerKicked.

OnUserRespawn

OxideCarbon
void OnUserRespawn(IPlayer player)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnPlayerRespawn.

OnUserRespawned

OxideCarbon
void OnUserRespawned(IPlayer player)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnPlayerRespawned.

OnUserUnbanned

OxideCarbon
void OnUserUnbanned(string playerName, string playerId, string address)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.OnServerUserRemove.

OnWireClear

OxideCarbon
object OnWireClear(BasePlayer player, IOEntity ioA, int clearIndex, IOEntity ioB, bool isInput)

Return a non-null value to override what the game does; return null to let it continue. Called from WireTool.AttemptClearSlot.

OnWireConnect

OxideCarbon
void OnWireConnect(BasePlayer local0, IOEntity local5, int local3, IOEntity local6, int local4, Vector3] linePoints, Single] local8)

Returns nothing: it only tells you something happened. Called from WireTool.RPC_MakeConnection.

Oxide & Carbon Hooks 44Entity98

CanEntityBeHostile

OxideCarbon
object CanEntityBeHostile(BaseCombatEntity baseCombatEntity)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseCombatEntity.IsHostile, BasePlayer.IsHostile.

CanExplosiveStick

OxideCarbon
object CanExplosiveStick(TimedExplosive timedExplosive)

Return a non-null value to override what the game does; return null to let it continue. Called from TimedExplosive.CanStickTo.

CanLootEntity

OxideCarbon
void CanLootEntity(WorldItem worldItem)

Returns nothing: it only tells you something happened. Called from WorldItem.RPC_OpenLoot, LootableCorpse.RPC_LootCorpse.

CanMannequinChangePose

OxideCarbon
void CanMannequinChangePose(Mannequin mannequin, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Mannequin.Server_ChangePose.

CanMannequinSwap

OxideCarbon
void CanMannequinSwap(Mannequin mannequin, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from Mannequin.Server_RequestSwap.

CanSamSiteShoot

OxideCarbon
void CanSamSiteShoot(SamSite samSite)

Returns nothing: it only tells you something happened. Called from SamSite.WeaponTick.

CanSeeStash

OxideCarbon
void CanSeeStash(BasePlayer basePlayer, StashContainer entity)

Returns nothing: it only tells you something happened. Called from BasePlayer.CheckStashRevealInvoke.

CanWaterBallSplash

OxideCarbon
object CanWaterBallSplash(ItemDefinition liquidDef, Vector3 position, float radius, int amount, bool funWater)

Return a non-null value to override what the game does; return null to let it continue. Called from WaterBall.DoSplash.

OnAirdrop

OxideCarbon
void OnAirdrop(CargoPlane cargoPlane)

Returns nothing: it only tells you something happened. Called from CargoPlane.UpdateDropPosition.

OnAnalysisComplete

OxideCarbon
void OnAnalysisComplete(SurveyCrater surveyCrater, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SurveyCrater.AnalysisComplete.

OnArcadeScoreAdded

OxideCarbon
void OnArcadeScoreAdded(BaseArcadeMachine baseArcadeMachine, BasePlayer player, int score)

Returns nothing: it only tells you something happened. Called from BaseArcadeMachine.AddScore.

OnBedMade

OxideCarbon
void OnBedMade(SleepingBag sleepingBag, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SleepingBag.RPC_MakeBed.

OnBigWheelLoss

OxideCarbon
void OnBigWheelLoss()

Returns nothing: it only tells you something happened. Called from BigWheelGame.Payout.

OnBigWheelWin

OxideCarbon
void OnBigWheelWin()

Returns nothing: it only tells you something happened. Called from BigWheelGame.Payout.

OnBuildingPrivilege

OxideCarbon
object OnBuildingPrivilege(BaseEntity baseEntity)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseEntity.GetBuildingPrivilege.

OnCargoPlaneSignaled

OxideCarbon
void OnCargoPlaneSignaled(BaseEntity local0, SupplySignal supplySignal)

Returns nothing: it only tells you something happened. Called from SupplySignal.Explode.

OnCargoShipEgress

OxideCarbon
void OnCargoShipEgress(CargoShip cargoShip)

Returns nothing: it only tells you something happened. Called from CargoShip.StartEgress.

OnCargoShipHarborApproach

OxideCarbon
void OnCargoShipHarborApproach(CargoShip cargoShip)

Returns nothing: it only tells you something happened. Called from CargoShip.StartHarborApproach.

OnCargoShipHarborArrived

OxideCarbon
void OnCargoShipHarborArrived(CargoShip cargoShip)

Returns nothing: it only tells you something happened. Called from CargoShip.OnArrivedAtHarbor.

OnCargoShipHarborLeave

OxideCarbon
void OnCargoShipHarborLeave(CargoShip cargoShip)

Returns nothing: it only tells you something happened. Called from CargoShip.LeaveHarbor.

OnCargoShipSpawnCrate

OxideCarbon
void OnCargoShipSpawnCrate(CargoShip cargoShip)

Returns nothing: it only tells you something happened. Called from CargoShip.RespawnLoot.

OnContainerDropItems

OxideCarbon
void OnContainerDropItems(ItemContainer container)

Returns nothing: it only tells you something happened. Called from DropUtil.DropItems.

OnCrateDropped

OxideCarbon
void OnCrateDropped(HackableLockedCrate hackableLockedCrate)

Returns nothing: it only tells you something happened. Called from HackableLockedCrate.SetWasDropped.

OnCrateHack

OxideCarbon
void OnCrateHack(HackableLockedCrate hackableLockedCrate)

Returns nothing: it only tells you something happened. Called from HackableLockedCrate.StartHacking.

OnCrateHackEnd

OxideCarbon
void OnCrateHackEnd(HackableLockedCrate hackableLockedCrate)

Returns nothing: it only tells you something happened. Called from HackableLockedCrate.HackProgress.

OnCrateLanded

OxideCarbon
void OnCrateLanded(HackableLockedCrate hackableLockedCrate)

Returns nothing: it only tells you something happened. Called from HackableLockedCrate.LandCheck.

OnCrateLaptopAttack

OxideCarbon
void OnCrateLaptopAttack(HackableLockedCrate hackableLockedCrate, HitInfo info)

Returns nothing: it only tells you something happened. Called from HackableLockedCrate.OnAttacked.

OnCrateSpawned

OxideCarbon
void OnCrateSpawned(BradleyAPC bradleyAPC, BaseEntity local14)

Returns nothing: it only tells you something happened. Called from BradleyAPC.OnDied, PatrolHelicopter.OnDied.

OnDebrisSpawn

OxideCarbon
void OnDebrisSpawn(DecayEntity decayEntity)

Returns nothing: it only tells you something happened. Called from DecayEntity.SpawnDebris.

OnDecayDamage

OxideCarbon
void OnDecayDamage(DecayEntity decayEntity)

Returns nothing: it only tells you something happened. Called from DecayEntity.OnDecay.

OnDecayHeal

OxideCarbon
void OnDecayHeal(DecayEntity decayEntity)

Returns nothing: it only tells you something happened. Called from DecayEntity.OnDecay.

OnDieselEngineToggle

OxideCarbon
void OnDieselEngineToggle(DieselEngine dieselEngine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from DieselEngine.EngineSwitch.

OnDieselEngineToggled

OxideCarbon
void OnDieselEngineToggled(DieselEngine dieselEngine)

Returns nothing: it only tells you something happened. Called from DieselEngine.EngineOff, DieselEngine.EngineOn.

OnEntityActiveCheck

OxideCarbon
object OnEntityActiveCheck(BaseEntity ent, BasePlayer player, uint id, string debugName)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseEntity/RPC_Server/IsActiveItem.Test.

OnEntityDeath

OxideCarbon
void OnEntityDeath(BaseCombatEntity baseCombatEntity)

Returns nothing: it only tells you something happened. Called from BaseCombatEntity.Die, ResourceEntity.OnDied.

OnEntityDestroy

OxideCarbon
void OnEntityDestroy(CH47HelicopterAIController cH47HelicopterAIController)

Returns nothing: it only tells you something happened. Called from CH47HelicopterAIController.OnDied, BradleyAPC.OnDied.

OnEntityDismounted

OxideCarbon
void OnEntityDismounted(BaseMountable baseMountable, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BaseMountable.DismountPlayer.

OnEntityDistanceCheck

OxideCarbon
object OnEntityDistanceCheck(BaseEntity ent, BasePlayer player, uint id, string debugName, float maximumDistance, bool checkParent)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseEntity/RPC_Server/MaxDistance.Test.

OnEntityEnter

OxideCarbon
void OnEntityEnter(TriggerBase triggerBase)

Returns nothing: it only tells you something happened. Called from TriggerBase.OnEntityEnter, TriggerComfort.OnEntityEnter.

OnEntityFlagsNetworkUpdate

OxideCarbon
void OnEntityFlagsNetworkUpdate(BaseEntity baseEntity)

Returns nothing: it only tells you something happened. Called from BaseEntity.SendNetworkUpdate_Flags.

OnEntityFromOwnerCheck

OxideCarbon
object OnEntityFromOwnerCheck(BaseEntity ent, BasePlayer player, uint id, string debugName)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseEntity/RPC_Server/FromOwner.Test.

OnEntityGroundMissing

OxideCarbon
void OnEntityGroundMissing(BaseEntity local0)

Returns nothing: it only tells you something happened. Called from DestroyOnGroundMissing.OnGroundMissing.

OnEntityKill

OxideCarbon
void OnEntityKill(BaseNetworkable baseNetworkable)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.Kill.

OnEntityLeave

OxideCarbon
void OnEntityLeave(TriggerBase triggerBase)

Returns nothing: it only tells you something happened. Called from TriggerBase.OnEntityLeave, TriggerComfort.OnEntityLeave.

OnEntityLoaded

OxideCarbon
void OnEntityLoaded(BaseNetworkable baseNetworkable)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.Load.

OnEntityMarkHostile

OxideCarbon
void OnEntityMarkHostile(BaseCombatEntity baseCombatEntity)

Returns nothing: it only tells you something happened. Called from BaseCombatEntity.MarkHostileFor, BasePlayer.MarkHostileFor.

OnEntityPickedUp

OxideCarbon
void OnEntityPickedUp(BaseCombatEntity baseCombatEntity)

Returns nothing: it only tells you something happened. Called from BaseCombatEntity.OnPickedUp.

OnEntitySnapshot

OxideCarbon
void OnEntitySnapshot(BaseNetworkable baseNetworkable, Connection connection)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.SendAsSnapshot, BasePlayer.SendEntitySnapshot.

OnEntitySpawned

OxideCarbon
void OnEntitySpawned(BaseNetworkable baseNetworkable)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.Spawn.

OnEntityStabilityCheck

OxideCarbon
void OnEntityStabilityCheck(StabilityEntity stabilityEntity)

Returns nothing: it only tells you something happened. Called from StabilityEntity.StabilityCheck.

OnEntityTakeDamage

OxideCarbon
void OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnBasePlayerAttacked, ResourceEntity.OnAttacked.

OnEntityVisibilityCheck

OxideCarbon
object OnEntityVisibilityCheck(BaseEntity ent, BasePlayer player, uint id, string debugName, float maximumDistance)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseEntity/RPC_Server/IsVisible.Test.

OnEventTrigger

OxideCarbon
void OnEventTrigger(TriggeredEventPrefab triggeredEventPrefab)

Returns nothing: it only tells you something happened. Called from TriggeredEventPrefab.RunEvent.

OnFreeableContainerRelease

OxideCarbon
void OnFreeableContainerRelease(FreeableLootContainer freeableLootContainer)

Returns nothing: it only tells you something happened. Called from FreeableLootContainer.Release.

OnFreeableContainerReleaseStarted

OxideCarbon
void OnFreeableContainerReleaseStarted(FreeableLootContainer freeableLootContainer, BasePlayer player)

Returns nothing: it only tells you something happened. Called from FreeableLootContainer.RPC_FreeCrateTimer.

OnFreeableContainerReleased

OxideCarbon
void OnFreeableContainerReleased(FreeableLootContainer freeableLootContainer)

Returns nothing: it only tells you something happened. Called from FreeableLootContainer.Release.

OnGibsSpawned

OxideCarbon
void OnGibsSpawned(List[ServerGib] local0, GameObject creator)

Returns nothing: it only tells you something happened. Called from ServerGib.CreateGibs.

OnHotAirBalloonToggle

OxideCarbon
void OnHotAirBalloonToggle(HotAirBalloon hotAirBalloon, BasePlayer player)

Returns nothing: it only tells you something happened. Called from HotAirBalloon.EngineSwitch.

OnHotAirBalloonToggled

OxideCarbon
void OnHotAirBalloonToggled(HotAirBalloon hotAirBalloon, BasePlayer player)

Returns nothing: it only tells you something happened. Called from HotAirBalloon.EngineSwitch.

OnLiquidVesselFill

OxideCarbon
void OnLiquidVesselFill(BaseLiquidVessel baseLiquidVessel, BasePlayer local0, LiquidContainer local3)

Returns nothing: it only tells you something happened. Called from BaseLiquidVessel.FillCheck.

OnMixingTableFinished

OxideCarbon
void OnMixingTableFinished(MixingTable mixingTable, BasePlayer mixStartingPlayer, Recipe recipe, int quantity)

Returns nothing: it only tells you something happened. Called from MixingTable.ProduceItem.

OnMixingTableToggle

OxideCarbon
void OnMixingTableToggle(MixingTable mixingTable, BasePlayer player)

Returns nothing: it only tells you something happened. Called from MixingTable.SVSwitch.

OnNoGoZoneAdded

OxideCarbon
void OnNoGoZoneAdded(PatrolHelicopterAI patrolHelicopterAI)

Returns nothing: it only tells you something happened. Called from PatrolHelicopterAI.NoGoZoneAdded.

OnOvenCook

OxideCarbon
void OnOvenCook(BaseOven baseOven, Item local0)

Returns nothing: it only tells you something happened. Called from BaseOven.Cook.

OnOvenCooked

OxideCarbon
void OnOvenCooked(BaseOven baseOven, Item local0, BaseEntity local1)

Returns nothing: it only tells you something happened. Called from BaseOven.Cook.

OnOvenStart

OxideCarbon
void OnOvenStart(BaseOven baseOven)

Returns nothing: it only tells you something happened. Called from BaseOven.StartCooking.

OnOvenStarted

OxideCarbon
void OnOvenStarted(BaseOven baseOven)

Returns nothing: it only tells you something happened. Called from BaseOven.StartCooking.

OnOvenTemperature

OxideCarbon
object OnOvenTemperature(BaseOven baseOven)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseOven.GetTemperature.

OnOvenToggle

OxideCarbon
void OnOvenToggle(BaseOven baseOven, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BaseOven.SVSwitch.

OnPatrolHelicopterKill

OxideCarbon
void OnPatrolHelicopterKill(PatrolHelicopter patrolHelicopter, HitInfo info)

Returns nothing: it only tells you something happened. Called from PatrolHelicopter.Hurt.

OnPatrolHelicopterTakeDamage

OxideCarbon
void OnPatrolHelicopterTakeDamage(PatrolHelicopter patrolHelicopter)

Returns nothing: it only tells you something happened. Called from PatrolHelicopter.Hurt.

OnPhotoCapture

OxideCarbon
void OnPhotoCapture(PhotoEntity local5, Item local1, BasePlayer local0, Byte[] local2)

Returns nothing: it only tells you something happened. Called from InstantCameraTool.TakePhoto.

OnPhotoCaptured

OxideCarbon
void OnPhotoCaptured(PhotoEntity local5, Item local1, BasePlayer local0, Byte[] local2)

Returns nothing: it only tells you something happened. Called from InstantCameraTool.TakePhoto.

OnPlanterBoxFertilize

OxideCarbon
void OnPlanterBoxFertilize(PlanterBox planterBox)

Returns nothing: it only tells you something happened. Called from PlanterBox.FertilizeGrowables.

OnReactiveTargetReset

OxideCarbon
void OnReactiveTargetReset(ReactiveTarget reactiveTarget)

Returns nothing: it only tells you something happened. Called from ReactiveTarget.ResetTarget.

OnRecyclerToggle

OxideCarbon
void OnRecyclerToggle(Recycler recycler, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Recycler.SVSwitch.

OnRemoteIdentifierUpdate

OxideCarbon
void OnRemoteIdentifierUpdate(PoweredRemoteControlEntity poweredRemoteControlEntity, string newID)

Returns nothing: it only tells you something happened. Called from PoweredRemoteControlEntity.UpdateIdentifier.

OnSamSiteModeToggle

OxideCarbon
void OnSamSiteModeToggle(SamSite samSite, BasePlayer local0, bool local1)

Returns nothing: it only tells you something happened. Called from SamSite.ToggleDefenderMode.

OnSamSiteTarget

OxideCarbon
void OnSamSiteTarget()

Returns nothing: it only tells you something happened. Called from SamSite.TargetScan.

OnSamSiteTargetScan

OxideCarbon
void OnSamSiteTargetScan()

Returns nothing: it only tells you something happened. Called from SamSite.TargetScan.

OnSleepingBagDestroy

OxideCarbon
void OnSleepingBagDestroy()

Returns nothing: it only tells you something happened. Called from SleepingBag.DestroyBag.

OnSleepingBagDestroyed

OxideCarbon
void OnSleepingBagDestroyed(SleepingBag local1, ulong userID)

Returns nothing: it only tells you something happened. Called from SleepingBag.DestroyBag.

OnSleepingBagValidCheck

OxideCarbon
object OnSleepingBagValidCheck(SleepingBag sleepingBag, ulong playerID, bool ignoreTimers)

Return a non-null value to override what the game does; return null to let it continue. Called from SleepingBag.ValidForPlayer.

OnSprayRemove

OxideCarbon
void OnSprayRemove(SprayCanSpray sprayCanSpray, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from SprayCanSpray.Server_RequestWaterClear.

OnSprinklerSplashed

OxideCarbon
void OnSprinklerSplashed(Sprinkler sprinkler)

Returns nothing: it only tells you something happened. Called from Sprinkler.DoSplash.

OnStashExposed

OxideCarbon
void OnStashExposed(StashContainer entity, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.CheckStashRevealInvoke.

OnStashHidden

OxideCarbon
void OnStashHidden(StashContainer stashContainer, BasePlayer player)

Returns nothing: it only tells you something happened. Called from StashContainer.RPC_HideStash.

OnStashOcclude

OxideCarbon
void OnStashOcclude(StashContainer stashContainer)

Returns nothing: it only tells you something happened. Called from StashContainer.DoOccludedCheck.

OnSupplyDropDropped

OxideCarbon
void OnSupplyDropDropped(BaseEntity local1, CargoPlane cargoPlane)

Returns nothing: it only tells you something happened. Called from CargoPlane.Update.

OnSupplyDropLanded

OxideCarbon
void OnSupplyDropLanded(SupplyDrop supplyDrop)

Returns nothing: it only tells you something happened. Called from SupplyDrop.OnCollisionEnter.

OnSwitchToggle

OxideCarbon
void OnSwitchToggle(ElectricSwitch electricSwitch, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ElectricSwitch.RPC_Switch, FuelGenerator.RPC_EngineSwitch.

OnSwitchToggled

OxideCarbon
void OnSwitchToggled(ElectricSwitch electricSwitch, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ElectricSwitch.RPC_Switch, FuelGenerator.RPC_EngineSwitch.

OnTreeMarkerHit

OxideCarbon
object OnTreeMarkerHit(TreeEntity treeEntity)

Return a non-null value to override what the game does; return null to let it continue. Called from TreeEntity.DidHitMarker.

OnWaterCollect

OxideCarbon
void OnWaterCollect(WaterCatcher waterCatcher)

Returns nothing: it only tells you something happened. Called from WaterCatcher.CollectWater, WaterPump.CreateWater.

OnWaterPurified

OxideCarbon
void OnWaterPurified(WaterPurifier waterPurifier)

Returns nothing: it only tells you something happened. Called from WaterPurifier.ConvertWater.

OnWaterPurify

OxideCarbon
void OnWaterPurify(WaterPurifier waterPurifier)

Returns nothing: it only tells you something happened. Called from WaterPurifier.ConvertWater.

OnWindmillUpdate

OxideCarbon
void OnWindmillUpdate(ElectricWindmill electricWindmill)

Returns nothing: it only tells you something happened. Called from ElectricWindmill.WindUpdate.

OnWindmillUpdated

OxideCarbon
void OnWindmillUpdated(ElectricWindmill electricWindmill)

Returns nothing: it only tells you something happened. Called from ElectricWindmill.WindUpdate.

Oxide & Carbon Hooks 45Item66

CanAcceptItem

OxideCarbon
object CanAcceptItem(ItemContainer itemContainer, Item item, int targetPos, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from ItemContainer.CanAcceptItem.

CanCombineDroppedItem

OxideCarbon
void CanCombineDroppedItem(DroppedItem droppedItem, DroppedItem di)

Returns nothing: it only tells you something happened. Called from DroppedItem.OnDroppedOn.

CanDeployItem

OxideCarbon
void CanDeployItem(BasePlayer player, Deployer deployer, NetworkableId local2)

Returns nothing: it only tells you something happened. Called from Deployer.DoDeploy.

CanEquipItem

OxideCarbon
object CanEquipItem(PlayerInventory playerInventory, Item item, int targetSlot, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerInventory.CanEquipItem.

CanFastTrackCraftTask

OxideCarbon
object CanFastTrackCraftTask(ItemCrafter itemCrafter, ItemCraftTask local2, int taskID)

Return a non-null value to override what the game does; return null to let it continue. Called from ItemCrafter.FastTrackTask.

CanLockerAcceptItem

OxideCarbon
object CanLockerAcceptItem(Locker locker, Item item, int targetSlot, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from Locker.ItemFilter.

CanMoveItem

OxideCarbon
void CanMoveItem(Item local5, PlayerInventory playerInventory, ItemContainerId local1, int local2, int local3, ItemMoveModifier local4)

Returns nothing: it only tells you something happened. Called from PlayerInventory.MoveItem.

CanStackItem

OxideCarbon
object CanStackItem(Item item, Item item)

Return a non-null value to override what the game does; return null to let it continue. Called from Item.CanStack.

CanWearItem

OxideCarbon
object CanWearItem(PlayerInventory playerInventory, Item item, int targetSlot, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerInventory.CanWearItem.

OnBackpackDrop

OxideCarbon
void OnBackpackDrop(Item local0, PlayerInventory playerInventory)

Returns nothing: it only tells you something happened. Called from PlayerInventory.TryDropBackpack.

OnBonusItemDrop

OxideCarbon
void OnBonusItemDrop(Item local5, BasePlayer local0, ItemContainer container)

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnBonusItemDropped

OxideCarbon
void OnBonusItemDropped(Item local5, BasePlayer local0, ItemContainer container)

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnBonusItemDropped [patch 1]

OxideCarbon
void OnBonusItemDropped [patch 1]()

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnBonusItemDropped [patch 2]

OxideCarbon
void OnBonusItemDropped [patch 2]()

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnBonusItemDropped [patch 3]

OxideCarbon
void OnBonusItemDropped [patch 3]()

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnBonusItemDropped [patch 4]

OxideCarbon
void OnBonusItemDropped [patch 4]()

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnBonusItemDropped [patch 5]

OxideCarbon
void OnBonusItemDropped [patch 5]()

Returns nothing: it only tells you something happened. Called from LootContainer.DropBonusItems.

OnDroppedItemCombined

OxideCarbon
void OnDroppedItemCombined(DroppedItem droppedItem)

Returns nothing: it only tells you something happened. Called from DroppedItem.OnDroppedOn.

OnFindBurnable

OxideCarbon
object OnFindBurnable(BaseOven baseOven)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseOven.FindBurnable.

OnHealingItemUse

OxideCarbon
void OnHealingItemUse(MedicalTool medicalTool)

Returns nothing: it only tells you something happened. Called from MedicalTool.GiveEffectsTo.

OnInventoryAmmoFind

OxideCarbon
void OnInventoryAmmoFind(PlayerInventory playerInventory)

Returns nothing: it only tells you something happened. Called from PlayerInventory.FindAmmo.

OnInventoryAmmoItemFind

OxideCarbon
object OnInventoryAmmoItemFind(PlayerInventory playerInventory)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerInventory.FindAmmo, Chainsaw.GetAmmo.

OnInventoryItemFind

OxideCarbon
object OnInventoryItemFind(PlayerInventory playerInventory)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerInventory.FindItemByItemID.

OnInventoryItemsCount

OxideCarbon
object OnInventoryItemsCount(PlayerInventory playerInventory)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerInventory.GetAmount.

OnInventoryItemsFind

OxideCarbon
void OnInventoryItemsFind(PlayerInventory playerInventory, int id, List[Item] list)

Returns nothing: it only tells you something happened. Called from PlayerInventory.FindItemsByItemID.

OnInventoryItemsTake

OxideCarbon
object OnInventoryItemsTake(PlayerInventory playerInventory)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerInventory.Take.

OnItemAction

OxideCarbon
void OnItemAction(Item local2, string local1, BasePlayer player)

Returns nothing: it only tells you something happened. Called from PlayerInventory.ItemCmd.

OnItemAddedToContainer

OxideCarbon
void OnItemAddedToContainer(ItemContainer itemContainer)

Returns nothing: it only tells you something happened. Called from ItemContainer.Insert.

OnItemCraftCancelled

OxideCarbon
void OnItemCraftCancelled(ItemCraftTask local1, ItemCrafter itemCrafter)

Returns nothing: it only tells you something happened. Called from ItemCrafter.CancelTask.

OnItemCraftFinished

OxideCarbon
void OnItemCraftFinished(ItemCraftTask task, Item local1, ItemCrafter itemCrafter)

Returns nothing: it only tells you something happened. Called from ItemCrafter.FinishCrafting.

OnItemDeployed

OxideCarbon
void OnItemDeployed(Deployer deployer, ItemModDeployable local5, BaseEntity local6)

Returns nothing: it only tells you something happened. Called from Deployer.DoDeploy_Regular, Deployer.DoDeploy_Slot.

OnItemDespawn

OxideCarbon
void OnItemDespawn(Item item)

Returns nothing: it only tells you something happened. Called from DroppedItem.IdleDestroy.

OnItemDropped

OxideCarbon
void OnItemDropped(Item item, BaseEntity local1)

Returns nothing: it only tells you something happened. Called from Item.Drop.

OnItemFilter

OxideCarbon
object OnItemFilter(Item item, StorageContainer storageContainer, int targetSlot, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from StorageContainer.ItemFilter.

OnItemLock

OxideCarbon
void OnItemLock()

Returns nothing: it only tells you something happened. Called from Item.LockUnlock.

OnItemPainted

OxideCarbon
void OnItemPainted(PaintedItemStorageEntity paintedItemStorageEntity, Item local0, BasePlayer player, Byte[] local1)

Returns nothing: it only tells you something happened. Called from PaintedItemStorageEntity.Server_UpdateImage.

OnItemPickup

OxideCarbon
void OnItemPickup(Item item, BasePlayer player, WorldItem worldItem)

Returns nothing: it only tells you something happened. Called from WorldItem.Pickup.

OnItemRecycle

OxideCarbon
void OnItemRecycle(Item local3, Recycler recycler)

Returns nothing: it only tells you something happened. Called from Recycler.RecycleThink.

OnItemRecycleAmount

OxideCarbon
object OnItemRecycleAmount(Item local3, int local4, Recycler recycler)

Can return a value (int); return null to keep the default behaviour. Called from Recycler.RecycleThink.

OnItemRefill

OxideCarbon
void OnItemRefill(Item item, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ItemModRepair.ServerCommand.

OnItemRemove

OxideCarbon
void OnItemRemove(Item item)

Returns nothing: it only tells you something happened. Called from Item.Remove.

OnItemRemovedFromContainer

OxideCarbon
void OnItemRemovedFromContainer(ItemContainer itemContainer)

Returns nothing: it only tells you something happened. Called from ItemContainer.Remove.

OnItemRepair

OxideCarbon
void OnItemRepair(BasePlayer player, Item itemToRepair)

Returns nothing: it only tells you something happened. Called from RepairBench.RepairAnItem.

OnItemResearch

OxideCarbon
void OnItemResearch(ResearchTable researchTable, Item local1, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ResearchTable.DoResearch.

OnItemResearched

OxideCarbon
object OnItemResearched(ResearchTable researchTable, int local2)

Can return a value (int); return null to keep the default behaviour. Called from ResearchTable.ResearchAttemptFinished.

OnItemSkinChange

OxideCarbon
void OnItemSkinChange(int local2, Item local6, RepairBench repairBench, BasePlayer local1)

Returns nothing: it only tells you something happened. Called from RepairBench.ChangeSkin.

OnItemSplit

OxideCarbon
object OnItemSplit(Item item)

Return a non-null value to override what the game does; return null to let it continue. Called from Item.SplitItem.

OnItemStacked

OxideCarbon
void OnItemStacked(Item local13, Item item, ItemContainer newcontainer, int local15)

Returns nothing: it only tells you something happened. Called from Item.MoveToContainer.

OnItemSubmit

OxideCarbon
void OnItemSubmit(Item local1, Mailbox mailbox, BasePlayer fromPlayer)

Returns nothing: it only tells you something happened. Called from Mailbox.SubmitInputItems.

OnItemUnlock

OxideCarbon
void OnItemUnlock()

Returns nothing: it only tells you something happened. Called from Item.LockUnlock.

OnItemUnwrap

OxideCarbon
void OnItemUnwrap(Item item, BasePlayer player, ItemModUnwrap itemModUnwrap)

Returns nothing: it only tells you something happened. Called from ItemModUnwrap.ServerCommand.

OnItemUpgrade

OxideCarbon
void OnItemUpgrade(Item item, Item local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ItemModUpgrade.ServerCommand.

OnItemUse

OxideCarbon
object OnItemUse(Item item, int amountToConsume)

Can return a value (int); return null to keep the default behaviour. Called from Item.UseItem.

OnMapImageUpdated

OxideCarbon
void OnMapImageUpdated()

Returns nothing: it only tells you something happened. Called from MapEntity.ImageUpdate.

OnMaxStackable

OxideCarbon
object OnMaxStackable(Item item)

Return a non-null value to override what the game does; return null to let it continue. Called from Item.MaxStackable.

OnRackedWeaponLoad

OxideCarbon
void OnRackedWeaponLoad(Item local4, ItemDefinition local7, BasePlayer local0, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.LoadWeaponAmmo.

OnRackedWeaponLoaded

OxideCarbon
void OnRackedWeaponLoaded(Item local4, ItemDefinition local7, BasePlayer local0, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.LoadWeaponAmmo.

OnRackedWeaponMount

OxideCarbon
object OnRackedWeaponMount(Item item, BasePlayer player, WeaponRack weaponRack)

Return a non-null value to override what the game does; return null to let it continue. Called from WeaponRack.MountWeapon.

OnRackedWeaponMounted

OxideCarbon
void OnRackedWeaponMounted(Item item, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.MountWeapon.

OnRackedWeaponSwap

OxideCarbon
void OnRackedWeaponSwap(Item local0, WeaponRackSlot local2, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.SwapPlayerWeapon.

OnRackedWeaponSwapped

OxideCarbon
void OnRackedWeaponSwapped(Item local0, WeaponRackSlot local2, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.SwapPlayerWeapon.

OnRackedWeaponTake

OxideCarbon
void OnRackedWeaponTake(Item local1, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.GivePlayerWeapon.

OnRackedWeaponTaken

OxideCarbon
void OnRackedWeaponTaken(Item local1, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.GivePlayerWeapon.

OnRackedWeaponUnload

OxideCarbon
void OnRackedWeaponUnload(Item local1, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.UnloadWeapon.

OnRackedWeaponUnloaded

OxideCarbon
void OnRackedWeaponUnloaded(Item local1, BasePlayer player, WeaponRack weaponRack)

Returns nothing: it only tells you something happened. Called from WeaponRack.UnloadWeapon.

OnResearchCostDetermine

OxideCarbon
object OnResearchCostDetermine(Item item)

Return a non-null value to override what the game does; return null to let it continue. Called from ResearchTable.ScrapForResearch.

Oxide & Carbon Hooks 46Vehicle47

CanBradleyApcTarget

OxideCarbon
object CanBradleyApcTarget(BradleyAPC bradleyAPC)

Return a non-null value to override what the game does; return null to let it continue. Called from BradleyAPC.VisibilityTest.

CanDestroyLock

OxideCarbon
object CanDestroyLock(BasePlayer player, ModularCar modularCar, BaseVehicleModule viaModule)

Return a non-null value to override what the game does; return null to let it continue. Called from ModularCar.PlayerCanDestroyLock.

CanHelicopterDropCrate

OxideCarbon
object CanHelicopterDropCrate(CH47HelicopterAIController cH47HelicopterAIController)

Return a non-null value to override what the game does; return null to let it continue. Called from CH47HelicopterAIController.CanDropCrate.

CanHelicopterStrafe

OxideCarbon
object CanHelicopterStrafe(PatrolHelicopterAI patrolHelicopterAI)

Return a non-null value to override what the game does; return null to let it continue. Called from PatrolHelicopterAI.CanStrafe.

CanHelicopterStrafeTarget

OxideCarbon
object CanHelicopterStrafeTarget(PatrolHelicopterAI patrolHelicopterAI)

Return a non-null value to override what the game does; return null to let it continue. Called from PatrolHelicopterAI.ValidRocketTarget.

CanHelicopterTarget

OxideCarbon
object CanHelicopterTarget(PatrolHelicopterAI patrolHelicopterAI, BasePlayer ply)

Return a non-null value to override what the game does; return null to let it continue. Called from PatrolHelicopterAI.PlayerVisible.

CanHelicopterUseNapalm

OxideCarbon
object CanHelicopterUseNapalm(PatrolHelicopterAI patrolHelicopterAI)

Return a non-null value to override what the game does; return null to let it continue. Called from PatrolHelicopterAI.CanUseNapalm.

CanTrainCarCouple

OxideCarbon
object CanTrainCarCouple(TrainCar owner, TrainCar owner1)

Return a non-null value to override what the game does; return null to let it continue. Called from TrainCoupling.TryCouple.

CanUseHelicopter

OxideCarbon
void CanUseHelicopter(BasePlayer player, CH47HelicopterAIController cH47HelicopterAIController)

Returns nothing: it only tells you something happened. Called from CH47HelicopterAIController.AttemptMount.

OnBoatPathGenerate

OxideCarbon
object OnBoatPathGenerate()

Return a non-null value to override what the game does; return null to let it continue. Called from BaseBoat.GenerateOceanPatrolPath.

OnBradleyApcHunt

OxideCarbon
void OnBradleyApcHunt(BradleyAPC bradleyAPC)

Returns nothing: it only tells you something happened. Called from BradleyAPC.UpdateMovement_Hunt.

OnBradleyApcInitialize

OxideCarbon
void OnBradleyApcInitialize(BradleyAPC bradleyAPC)

Returns nothing: it only tells you something happened. Called from BradleyAPC.Initialize.

OnBradleyApcPatrol

OxideCarbon
void OnBradleyApcPatrol(BradleyAPC bradleyAPC)

Returns nothing: it only tells you something happened. Called from BradleyAPC.UpdateMovement_Patrol.

OnBradleyApcThink

OxideCarbon
void OnBradleyApcThink(BradleyAPC bradleyAPC)

Returns nothing: it only tells you something happened. Called from BradleyAPC.DoSimpleAI.

OnCodeChange

OxideCarbon
void OnCodeChange(ModularCar carOccupant, BasePlayer local0, string local1)

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_RequestNewCode.

OnEngineLoadoutRefresh

OxideCarbon
void OnEngineLoadoutRefresh(EngineStorage engineStorage)

Returns nothing: it only tells you something happened. Called from Rust.Modular.EngineStorage.RefreshLoadoutData.

OnEngineStartFinished

OxideCarbon
void OnEngineStartFinished()

Returns nothing: it only tells you something happened. Called from VehicleEngineController`1.FinishStartingEngine.

OnEngineStarted

OxideCarbon
void OnEngineStarted(MotorRowboat motorRowboat)

Returns nothing: it only tells you something happened. Called from MotorRowboat.EngineToggle, VehicleEngineController`1.TryStartEngine.

OnEngineStatsRefresh

OxideCarbon
void OnEngineStatsRefresh(VehicleModuleEngine vehicleModuleEngine, EngineStorage engineStorage)

Returns nothing: it only tells you something happened. Called from VehicleModuleEngine.RefreshPerformanceStats.

OnEngineStatsRefreshed

OxideCarbon
void OnEngineStatsRefreshed(VehicleModuleEngine vehicleModuleEngine, EngineStorage engineStorage)

Returns nothing: it only tells you something happened. Called from VehicleModuleEngine.RefreshPerformanceStats.

OnEngineStopped

OxideCarbon
void OnEngineStopped()

Returns nothing: it only tells you something happened. Called from VehicleEngineController`1.StopEngine.

OnHelicopterAttack

OxideCarbon
void OnHelicopterAttack(CH47HelicopterAIController cH47HelicopterAIController)

Returns nothing: it only tells you something happened. Called from CH47HelicopterAIController.OnAttacked.

OnHelicopterDropCrate

OxideCarbon
void OnHelicopterDropCrate(CH47HelicopterAIController cH47HelicopterAIController)

Returns nothing: it only tells you something happened. Called from CH47HelicopterAIController.DropCrate.

OnHelicopterDropDoorOpen

OxideCarbon
void OnHelicopterDropDoorOpen(CH47HelicopterAIController cH47HelicopterAIController)

Returns nothing: it only tells you something happened. Called from CH47HelicopterAIController.SetDropDoorOpen.

OnHelicopterOutOfCrates

OxideCarbon
object OnHelicopterOutOfCrates(CH47HelicopterAIController cH47HelicopterAIController)

Return a non-null value to override what the game does; return null to let it continue. Called from CH47HelicopterAIController.OutOfCrates.

OnHelicopterRetire

OxideCarbon
void OnHelicopterRetire(PatrolHelicopterAI patrolHelicopterAI)

Returns nothing: it only tells you something happened. Called from PatrolHelicopterAI.Retire.

OnHelicopterStrafeEnter

OxideCarbon
void OnHelicopterStrafeEnter(PatrolHelicopterAI patrolHelicopterAI, Vector3 position, BasePlayer strafeTarget)

Returns nothing: it only tells you something happened. Called from PatrolHelicopterAI.StartStrafe.

OnHelicopterTarget

OxideCarbon
void OnHelicopterTarget(HelicopterTurret helicopterTurret)

Returns nothing: it only tells you something happened. Called from HelicopterTurret.SetTarget.

OnLockRemove

OxideCarbon
void OnLockRemove(ModularCar carOccupant, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_RequestRemoveLock.

OnMlrsFire

OxideCarbon
void OnMlrsFire(MLRS mLRS, BasePlayer owner)

Returns nothing: it only tells you something happened. Called from MLRS.Fire.

OnMlrsFired

OxideCarbon
void OnMlrsFired(MLRS mLRS, BasePlayer owner)

Returns nothing: it only tells you something happened. Called from MLRS.Fire.

OnMlrsFiringEnded

OxideCarbon
void OnMlrsFiringEnded(MLRS mLRS)

Returns nothing: it only tells you something happened. Called from MLRS.EndFiring.

OnMlrsRocketFired

OxideCarbon
void OnMlrsRocketFired(MLRS mLRS, ServerProjectile local7)

Returns nothing: it only tells you something happened. Called from MLRS.FireNextRocket.

OnMlrsTarget

OxideCarbon
void OnMlrsTarget(MLRS mLRS, Vector3 worldPos, BasePlayer _mounted)

Returns nothing: it only tells you something happened. Called from MLRS.SetUserTargetHitPos.

OnMlrsTargetSet

OxideCarbon
void OnMlrsTargetSet(MLRS mLRS, Vector3 trueTargetHitPos, BasePlayer _mounted)

Returns nothing: it only tells you something happened. Called from MLRS.SetUserTargetHitPos.

OnTrainCarUncouple

OxideCarbon
void OnTrainCarUncouple(TrainCar trainCar, BasePlayer player)

Returns nothing: it only tells you something happened. Called from TrainCar.RPC_WantsUncouple.

OnVehicleHornPressed

OxideCarbon
void OnVehicleHornPressed(VehicleModuleSeating vehicleModuleSeating, BasePlayer player)

Returns nothing: it only tells you something happened. Called from VehicleModuleSeating.PlayerServerInput.

OnVehicleLockRequest

OxideCarbon
void OnVehicleLockRequest(ModularCarGarage modularCarGarage, BasePlayer local0, string local1)

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_RequestAddLock.

OnVehicleLockableCheck

OxideCarbon
object OnVehicleLockableCheck(ModularCarCodeLock modularCarCodeLock)

Return a non-null value to override what the game does; return null to let it continue. Called from ModularCarCodeLock.CanHaveALock.

OnVehicleModuleDeselected

OxideCarbon
void OnVehicleModuleDeselected(ModularCarGarage modularCarGarage, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_DeselectedLootItem.

OnVehicleModuleMove

OxideCarbon
object OnVehicleModuleMove(BaseVehicleModule local0, BaseModularVehicle baseModularVehicle, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseModularVehicle.CanMoveFrom.

OnVehicleModuleSelect

OxideCarbon
void OnVehicleModuleSelect(Item local2, ModularCarGarage modularCarGarage, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_SelectedLootItem.

OnVehicleModuleSelected

OxideCarbon
void OnVehicleModuleSelected(Item local2, ModularCarGarage modularCarGarage, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_SelectedLootItem.

OnVehicleModuleSelectedFix [patch]

OxideCarbon
void OnVehicleModuleSelectedFix [patch]()

Returns nothing: it only tells you something happened. Called from ModularCarGarage.RPC_SelectedLootItem.

OnVehicleModulesAssign

OxideCarbon
void OnVehicleModulesAssign(ModularCar modularCar, ItemModVehicleModule[] socketItemDefs)

Returns nothing: it only tells you something happened. Called from ModularCar.SpawnPreassignedModules.

OnVehicleModulesAssigned

OxideCarbon
void OnVehicleModulesAssigned(ModularCar modularCar, ItemModVehicleModule[] socketItemDefs)

Returns nothing: it only tells you something happened. Called from ModularCar.SpawnPreassignedModules.

OnVehiclePush

OxideCarbon
void OnVehiclePush(BaseVehicle baseVehicle, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BaseVehicle.RPC_WantsPush.

Oxide & Carbon Hooks 47Structure33

CanAffordToPlace

OxideCarbon
object CanAffordToPlace(BasePlayer local0, Planner planner, Construction component)

Return a non-null value to override what the game does; return null to let it continue. Called from Planner.CanAffordToPlace.

CanAffordUpgrade

OxideCarbon
object CanAffordUpgrade(BasePlayer player, BuildingBlock buildingBlock, BuildingGrade.Enum iGrade, ulong iSkin)

Return a non-null value to override what the game does; return null to let it continue. Called from BuildingBlock.CanAffordUpgrade.

CanBuild

OxideCarbon
void CanBuild(Planner planner, Construction local1, Construction.Target local3)

Returns nothing: it only tells you something happened. Called from Planner.DoBuild.

CanChangeGrade

OxideCarbon
object CanChangeGrade(BasePlayer player, BuildingBlock buildingBlock, BuildingGrade.Enum iGrade, ulong iSkin)

Return a non-null value to override what the game does; return null to let it continue. Called from BuildingBlock.CanChangeToGrade.

CanDemolish

OxideCarbon
object CanDemolish(BasePlayer player, DecayEntity decayEntity)

Return a non-null value to override what the game does; return null to let it continue. Called from DecayEntity.CanDemolish.

OnBuildingMerge

OxideCarbon
void OnBuildingMerge(ServerBuildingManager serverBuildingManager)

Returns nothing: it only tells you something happened. Called from ServerBuildingManager.Merge.

OnBuildingSplit

OxideCarbon
void OnBuildingSplit(BuildingManager.Building oldBuilding, uint local3)

Returns nothing: it only tells you something happened. Called from ServerBuildingManager.Split.

OnCodeChanged

OxideCarbon
void OnCodeChanged(BasePlayer player, CodeLock codeLock, string local0, bool local1)

Returns nothing: it only tells you something happened. Called from CodeLock.RPC_ChangeCode.

OnCodeEntered

OxideCarbon
void OnCodeEntered(CodeLock codeLock, BasePlayer player, string local0)

Returns nothing: it only tells you something happened. Called from CodeLock.UnlockWithCode.

OnConstructionPlace

OxideCarbon
void OnConstructionPlace()

Returns nothing: it only tells you something happened. Called from Planner.DoPlacement.

OnCupboardAssign

OxideCarbon
void OnCupboardAssign(BuildingPrivlidge priv, ulong targetId, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnCupboardAuthorize.

OnCupboardAuthorize

OxideCarbon
void OnCupboardAuthorize(BuildingPrivlidge priv, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnCupboardAuthorize, ItemModDeployable.OnDeployed.

OnCupboardClearList

OxideCarbon
void OnCupboardClearList(BuildingPrivlidge buildingPrivlidge, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BuildingPrivlidge.ClearList, VehiclePrivilege.ClearList.

OnCupboardDeauthorize

OxideCarbon
void OnCupboardDeauthorize(BuildingPrivlidge buildingPrivlidge, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BuildingPrivlidge.RemoveSelfAuthorize, VehiclePrivilege.RemoveSelfAuthorize.

OnCupboardProtectionCalculated

OxideCarbon
void OnCupboardProtectionCalculated(BuildingPrivlidge buildingPrivlidge, float cachedProtectedMinutes)

Returns nothing: it only tells you something happened. Called from BuildingPrivlidge.GetProtectedMinutes.

OnDoorClosed

OxideCarbon
void OnDoorClosed(Door door, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Door.RPC_CloseDoor.

OnDoorKnocked

OxideCarbon
void OnDoorKnocked(Door door, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Door.RPC_KnockDoor, DoorKnocker.Knock.

OnDoorOpened

OxideCarbon
void OnDoorOpened(Door door, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Door.RPC_OpenDoor.

OnEntityBuilt

OxideCarbon
void OnEntityBuilt(Planner planner, GameObject local2)

Returns nothing: it only tells you something happened. Called from Planner.DoBuild.

OnHammerHit

OxideCarbon
void OnHammerHit(BasePlayer local0, HitInfo info)

Returns nothing: it only tells you something happened. Called from Hammer.DoAttackShared.

OnLockerSwap

OxideCarbon
void OnLockerSwap(Locker locker, int local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Locker.RPC_Equip.

OnPlayerPveDamage

OxideCarbon
void OnPlayerPveDamage(BaseEntity initiator, HitInfo info, BuildingBlock buildingBlock)

Returns nothing: it only tells you something happened. Called from BuildingBlock.Hurt.

OnPoweredLightsPointAdd

OxideCarbon
void OnPoweredLightsPointAdd(StringLights stringLights, BasePlayer local0, Vector3 local1, Vector3 local2)

Returns nothing: it only tells you something happened. Called from StringLights.SERVER_AddPoint.

OnSignContentCopied

OxideCarbon
void OnSignContentCopied(SignContent signContent, ISignage s, IUGCBrowserEntity b)

Returns nothing: it only tells you something happened. Called from SignContent.CopyInfoToSign.

OnSignLocked

OxideCarbon
void OnSignLocked(Signage signage, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Signage.LockSign, PhotoFrame.LockSign.

OnSignUpdated

OxideCarbon
void OnSignUpdated(Signage signage, BasePlayer player, int local0)

Returns nothing: it only tells you something happened. Called from Signage.UpdateSign, PhotoFrame.UpdateSign.

OnStructureDemolish

OxideCarbon
void OnStructureDemolish(DecayEntity decayEntity, BasePlayer player)

Returns nothing: it only tells you something happened. Called from DecayEntity.DoImmediateDemolish, DecayEntity.DoDemolish.

OnStructureRepair

OxideCarbon
void OnStructureRepair(BaseCombatEntity baseCombatEntity)

Returns nothing: it only tells you something happened. Called from BaseCombatEntity.DoRepair.

OnStructureRotate

OxideCarbon
void OnStructureRotate(BuildingBlock buildingBlock, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BuildingBlock.DoRotation.

OnStructureUpgrade

OxideCarbon
void OnStructureUpgrade(BuildingBlock buildingBlock, BasePlayer player, BuildingGrade.Enum type, ulong skin)

Returns nothing: it only tells you something happened. Called from BuildingBlock.DoUpgradeToGrade.

OnStructureUpgraded

OxideCarbon
void OnStructureUpgraded(BuildingBlock buildingBlock, BasePlayer player, BuildingGrade.Enum type, ulong skin)

Returns nothing: it only tells you something happened. Called from BuildingBlock.DoUpgradeToGrade.

OnWallpaperRemove

OxideCarbon
void OnWallpaperRemove(BuildingBlock buildingBlock, int side)

Returns nothing: it only tells you something happened. Called from BuildingBlock.RemoveWallpaper.

OnWallpaperSet

OxideCarbon
void OnWallpaperSet(BuildingBlock buildingBlock, ulong id, int side, float rotation)

Returns nothing: it only tells you something happened. Called from BuildingBlock.SetWallpaper.

Oxide & Carbon Hooks 48Weapon25

CanBeHomingTargeted

OxideCarbon
object CanBeHomingTargeted(BaseHelicopter baseHelicopter)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseHelicopter.IsValidHomingTarget, CH47Helicopter.IsValidHomingTarget.

CanCreateWorldProjectile

OxideCarbon
void CanCreateWorldProjectile(HitInfo info, ItemDefinition itemDef)

Returns nothing: it only tells you something happened. Called from BasePlayer.CreateWorldProjectile.

CanFireLiquidWeapon

OxideCarbon
object CanFireLiquidWeapon(BasePlayer player, LiquidWeapon liquidWeapon)

Return a non-null value to override what the game does; return null to let it continue. Called from LiquidWeapon.CanFire.

OnAmmoSwitch

OxideCarbon
void OnAmmoSwitch(BaseProjectile baseProjectile, BasePlayer local0, ItemDefinition local2)

Returns nothing: it only tells you something happened. Called from BaseProjectile.SwitchAmmoTo.

OnAmmoUnload

OxideCarbon
void OnAmmoUnload(BaseProjectile local0, Item item, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BaseProjectile.UnloadAmmo.

OnExplosiveDropped

OxideCarbon
void OnExplosiveDropped(BasePlayer player, BaseEntity local3, ThrownWeapon thrownWeapon)

Returns nothing: it only tells you something happened. Called from ThrownWeapon.DoDrop.

OnExplosiveDud

OxideCarbon
void OnExplosiveDud()

Returns nothing: it only tells you something happened. Called from DudTimedExplosive.Explode.

OnExplosiveFuseSet

OxideCarbon
object OnExplosiveFuseSet(TimedExplosive timedExplosive, float fuseLength)

Can return a value (float); return null to keep the default behaviour. Called from TimedExplosive.SetFuse.

OnExplosiveThrown

OxideCarbon
void OnExplosiveThrown(BasePlayer player, BaseEntity local4, ThrownWeapon thrownWeapon)

Returns nothing: it only tells you something happened. Called from ThrownWeapon.DoThrow.

OnFireBallDamage

OxideCarbon
void OnFireBallDamage(FireBall fireBall, BaseCombatEntity local4, HitInfo local2)

Returns nothing: it only tells you something happened. Called from FireBall.DoRadialDamage.

OnFireBallSpread

OxideCarbon
void OnFireBallSpread(FireBall fireBall, BaseEntity local1)

Returns nothing: it only tells you something happened. Called from FireBall.TryToSpread.

OnFlameExplosion

OxideCarbon
void OnFlameExplosion(FlameExplosive flameExplosive, Collider local1)

Returns nothing: it only tells you something happened. Called from FlameExplosive.FlameExplode.

OnFlameThrowerBurn

OxideCarbon
void OnFlameThrowerBurn(FlameThrower flameThrower, BaseEntity local13)

Returns nothing: it only tells you something happened. Called from FlameThrower.FlameTick.

OnImpactEffectCreate

OxideCarbon
void OnImpactEffectCreate(HitInfo info, string customEffect)

Returns nothing: it only tells you something happened. Called from Effect/server.ImpactEffect.

OnLiquidWeaponFired

OxideCarbon
void OnLiquidWeaponFired(LiquidWeapon liquidWeapon, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from LiquidWeapon.StartFiring.

OnLiquidWeaponFiringStopped

OxideCarbon
void OnLiquidWeaponFiringStopped(LiquidWeapon liquidWeapon)

Returns nothing: it only tells you something happened. Called from LiquidWeapon.StopFiring.

OnMagazineReload

OxideCarbon
object OnMagazineReload(BaseProjectile baseProjectile, IAmmoContainer ammoSource, BasePlayer getOwnerPlayer)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseProjectile.TryReloadMagazine.

OnMeleeThrown

OxideCarbon
void OnMeleeThrown(BasePlayer local0, Item local1)

Returns nothing: it only tells you something happened. Called from BaseMelee.CLProject.

OnProjectileRicochet

OxideCarbon
void OnProjectileRicochet(BasePlayer basePlayer, PlayerProjectileRicochet local0)

Returns nothing: it only tells you something happened. Called from BasePlayer.OnProjectileRicochet.

OnRocketLaunched

OxideCarbon
void OnRocketLaunched(BasePlayer local0, BaseEntity local8)

Returns nothing: it only tells you something happened. Called from BaseLauncher.SV_Launch.

OnTimedExplosiveExplode

OxideCarbon
void OnTimedExplosiveExplode(TimedExplosive timedExplosive)

Returns nothing: it only tells you something happened. Called from TimedExplosive.Explode.

OnWeaponFired

OxideCarbon
void OnWeaponFired(BaseProjectile baseProjectile, BasePlayer player, ItemModProjectile local3, ProjectileShoot local2)

Returns nothing: it only tells you something happened. Called from BaseProjectile.ProcessCLProject.

OnWeaponModChange

OxideCarbon
void OnWeaponModChange(BaseProjectile baseProjectile, BasePlayer getOwnerPlayer)

Returns nothing: it only tells you something happened. Called from BaseProjectile.DelayedModsChanged.

OnWeaponReload

OxideCarbon
void OnWeaponReload(BaseProjectile baseProjectile, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from BaseProjectile.ProcessStartReload.

OnWorldProjectileCreate

OxideCarbon
void OnWorldProjectileCreate(HitInfo info, Item local1)

Returns nothing: it only tells you something happened. Called from BasePlayer.CreateWorldProjectile.

Oxide & Carbon Hooks 49Electronic23

OnButtonPress

OxideCarbon
void OnButtonPress(PressButton pressButton, BasePlayer player)

Returns nothing: it only tells you something happened. Called from PressButton.RPC_Press.

OnCCTVDirectionChange

OxideCarbon
void OnCCTVDirectionChange(CCTV_RC cCTV_RC, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from CCTV_RC.Server_SetDir.

OnCardSwipe

OxideCarbon
void OnCardSwipe(CardReader cardReader, Keycard local2, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from CardReader.ServerCardSwiped.

OnCounterModeToggle

OxideCarbon
void OnCounterModeToggle()

Returns nothing: it only tells you something happened. Called from PowerCounter.ToggleDisplayMode.

OnCounterModeToggle [patch]

OxideCarbon
void OnCounterModeToggle [patch]()

Returns nothing: it only tells you something happened. Called from PowerCounter.ToggleDisplayMode.

OnCounterTargetChange

OxideCarbon
void OnCounterTargetChange()

Returns nothing: it only tells you something happened. Called from PowerCounter.SERVER_SetTarget.

OnCounterTargetChange [patch]

OxideCarbon
void OnCounterTargetChange [patch]()

Returns nothing: it only tells you something happened. Called from PowerCounter.SERVER_SetTarget.

OnDigitalClockAlarmsSet

OxideCarbon
void OnDigitalClockAlarmsSet(DigitalClock digitalClock, DigitalClockMessage local0)

Returns nothing: it only tells you something happened. Called from DigitalClock.RPC_SetAlarms.

OnDigitalClockRing

OxideCarbon
void OnDigitalClockRing(DigitalClock digitalClock)

Returns nothing: it only tells you something happened. Called from DigitalClock.Ring.

OnDigitalClockRingStop

OxideCarbon
void OnDigitalClockRingStop(DigitalClock digitalClock)

Returns nothing: it only tells you something happened. Called from DigitalClock.StopRinging.

OnEntityControl

OxideCarbon
object OnEntityControl(AutoTurret autoTurret)

Return a non-null value to override what the game does; return null to let it continue. Called from AutoTurret.CanControl, PoweredRemoteControlEntity.CanControl.

OnExcavatorSuppliesRequest

OxideCarbon
void OnExcavatorSuppliesRequest(ExcavatorSignalComputer excavatorSignalComputer, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ExcavatorSignalComputer.RequestSupplies.

OnExcavatorSuppliesRequested

OxideCarbon
void OnExcavatorSuppliesRequested(ExcavatorSignalComputer excavatorSignalComputer, BasePlayer player, BaseEntity local0)

Returns nothing: it only tells you something happened. Called from ExcavatorSignalComputer.RequestSupplies.

OnIORefCleared

OxideCarbon
void OnIORefCleared(IOEntity.IORef iORef)

Returns nothing: it only tells you something happened. Called from IOEntity/IORef.Clear.

OnIORefCleared [patch]

OxideCarbon
void OnIORefCleared [patch]()

Returns nothing: it only tells you something happened. Called from IOEntity/IORef.Clear.

OnInputUpdate

OxideCarbon
void OnInputUpdate(IOEntity iOEntity)

Returns nothing: it only tells you something happened. Called from IOEntity.UpdateFromInput.

OnOutputUpdate

OxideCarbon
void OnOutputUpdate(IOEntity iOEntity)

Returns nothing: it only tells you something happened. Called from IOEntity.UpdateOutputs.

OnPhoneNameUpdate

OxideCarbon
void OnPhoneNameUpdate(PhoneController phoneController, string newName, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.UpdatePhoneName.

OnPhoneNameUpdated

OxideCarbon
void OnPhoneNameUpdated(PhoneController phoneController, string phoneName, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.UpdatePhoneName.

OnPowergridStageChange

OxideCarbon
void OnPowergridStageChange(PowergridManager powergridManager, int local2)

Returns nothing: it only tells you something happened. Called from PowergridManager.ServerTick.

OnPowergridStageChanged

OxideCarbon
void OnPowergridStageChanged(PowergridManager powergridManager, int local2)

Returns nothing: it only tells you something happened. Called from PowergridManager.ServerTick.

OnSensorDetect

OxideCarbon
void OnSensorDetect()

Returns nothing: it only tells you something happened. Called from HBHFSensor.CountDetectedPlayers.

OnSolarPanelSunUpdate

OxideCarbon
void OnSolarPanelSunUpdate(SolarPanel solarPanel, int local0)

Returns nothing: it only tells you something happened. Called from SolarPanel.SunUpdate.

Oxide & Carbon Hooks 50Resource23

OnCoalingTowerGather

OxideCarbon
void OnCoalingTowerGather()

Returns nothing: it only tells you something happened. Called from CoalingTower.EmptyTenPercent.

OnCoalingTowerStart

OxideCarbon
void OnCoalingTowerStart(CoalingTower coalingTower, BasePlayer player)

Returns nothing: it only tells you something happened. Called from CoalingTower.RPC_Unload.

OnCollectiblePickedup

OxideCarbon
void OnCollectiblePickedup(CollectibleEntity collectibleEntity, BasePlayer reciever, Item local8)

Returns nothing: it only tells you something happened. Called from CollectibleEntity.DoPickup.

OnCollectiblePickup

OxideCarbon
void OnCollectiblePickup(CollectibleEntity collectibleEntity, BasePlayer reciever, bool eat)

Returns nothing: it only tells you something happened. Called from CollectibleEntity.DoPickup.

OnDispenserBonus

OxideCarbon
object OnDispenserBonus(ResourceDispenser resourceDispenser, BasePlayer player, Item local5)

Can return a value (Item); return null to keep the default behaviour. Called from ResourceDispenser.AssignFinishBonus.

OnDispenserBonusReceived

OxideCarbon
void OnDispenserBonusReceived(ResourceDispenser resourceDispenser, BasePlayer player, Item local5)

Returns nothing: it only tells you something happened. Called from ResourceDispenser.AssignFinishBonus.

OnDispenserGather

OxideCarbon
void OnDispenserGather(ResourceDispenser resourceDispenser, BasePlayer entity, Item local7)

Returns nothing: it only tells you something happened. Called from ResourceDispenser.GiveResourceFromItem.

OnDispenserGathered

OxideCarbon
void OnDispenserGathered(ResourceDispenser resourceDispenser, BasePlayer entity, Item local7)

Returns nothing: it only tells you something happened. Called from ResourceDispenser.GiveResourceFromItem.

OnExcavatorGather

OxideCarbon
void OnExcavatorGather(ExcavatorArm excavatorArm, Item local8)

Returns nothing: it only tells you something happened. Called from ExcavatorArm.ProduceResources.

OnExcavatorMiningToggled

OxideCarbon
void OnExcavatorMiningToggled(ExcavatorArm excavatorArm)

Returns nothing: it only tells you something happened. Called from ExcavatorArm.BeginMining, ExcavatorArm.StopMining.

OnExcavatorResourceSet

OxideCarbon
void OnExcavatorResourceSet(ExcavatorArm excavatorArm, string local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ExcavatorArm.RPC_SetResourceTarget.

OnGrowableGather

OxideCarbon
void OnGrowableGather(GrowableEntity growableEntity)

Returns nothing: it only tells you something happened. Called from GrowableEntity.PickFruit.

OnGrowableGathered

OxideCarbon
void OnGrowableGathered(GrowableEntity growableEntity, Item local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from GrowableEntity.GiveFruit.

OnGrowableStateChange

OxideCarbon
void OnGrowableStateChange(GrowableEntity growableEntity, PlantProperties.State state)

Returns nothing: it only tells you something happened. Called from GrowableEntity.ChangeState.

OnLootSpawn

OxideCarbon
void OnLootSpawn(LootContainer lootContainer)

Returns nothing: it only tells you something happened. Called from LootContainer.SpawnLoot, LootFill.DelayFill.

OnQuarryConsumeFuel

OxideCarbon
object OnQuarryConsumeFuel(MiningQuarry miningQuarry, Item local0)

Can return a value (Item); return null to keep the default behaviour. Called from MiningQuarry.FuelCheck.

OnQuarryGather

OxideCarbon
void OnQuarryGather()

Returns nothing: it only tells you something happened. Called from MiningQuarry.ProcessResources.

OnQuarryToggle

OxideCarbon
void OnQuarryToggle(MiningQuarry local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from EngineSwitch.StartEngine, EngineSwitch.StopEngine.

OnQuarryToggled

OxideCarbon
void OnQuarryToggled(MiningQuarry local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from EngineSwitch.StopEngine, EngineSwitch.StartEngine.

OnRandomItemAward

OxideCarbon
void OnRandomItemAward()

Returns nothing: it only tells you something happened. Called from RandomItemDispenser.TryAward.

OnRemoveDying

OxideCarbon
void OnRemoveDying(GrowableEntity growableEntity, BasePlayer receiver)

Returns nothing: it only tells you something happened. Called from GrowableEntity.RemoveDying.

OnResourceDepositCreated

OxideCarbon
void OnResourceDepositCreated(ResourceDepositManager.ResourceDeposit local1)

Returns nothing: it only tells you something happened. Called from ResourceDepositManager.CreateFromPosition.

OnSurveyGather

OxideCarbon
void OnSurveyGather(SurveyCharge surveyCharge)

Returns nothing: it only tells you something happened. Called from SurveyCharge.Explode.

Oxide & Carbon Hooks 51NPC19

CanDeployScientists

OxideCarbon
object CanDeployScientists(BradleyAPC bradleyAPC)

Return a non-null value to override what the game does; return null to let it continue. Called from BradleyAPC.CanDeployScientists.

CanNpcEat

OxideCarbon
object CanNpcEat(BaseNpc baseNpc)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseNpc.WantsToEat.

OnAIBrainStateSwitch

OxideCarbon
object OnAIBrainStateSwitch(BaseAIBrain baseAIBrain, BaseAIBrain.BasicAIState currentState, BaseAIBrain.BasicAIState newState)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseAIBrain.SwitchToState.

OnAIBrainStateSwitched

OxideCarbon
void OnAIBrainStateSwitched(BaseAIBrain baseAIBrain, BaseAIBrain.BasicAIState currentState)

Returns nothing: it only tells you something happened. Called from BaseAIBrain.SwitchToState.

OnCorpsePopulate

OxideCarbon
object OnCorpsePopulate(NPCPlayer nPCPlayer, NPCPlayerCorpse local1)

Return a non-null value to override what the game does; return null to let it continue. Called from NPCPlayer.CreateCorpse, Rust.Ai.Gen2.State_Dead.StartRagdoll.

OnNpcAlert

OxideCarbon
void OnNpcAlert(ScientistNPC scientistNPC)

Returns nothing: it only tells you something happened. Called from ScientistNPC.Alert.

OnNpcAttack

OxideCarbon
void OnNpcAttack(BaseNpc baseNpc, BaseEntity attackTarget)

Returns nothing: it only tells you something happened. Called from BaseNpc.StartAttack.

OnNpcConversationEnded

OxideCarbon
void OnNpcConversationEnded(NPCTalking nPCTalking)

Returns nothing: it only tells you something happened. Called from NPCTalking.OnConversationEnded.

OnNpcConversationRespond

OxideCarbon
void OnNpcConversationRespond(NPCTalking nPCTalking, BasePlayer ply, ConversationData local0, ConversationData.AbstractSpeechNodeData local1, int responseIndex)

Returns nothing: it only tells you something happened. Called from NPCTalking.HandleResponse.

OnNpcConversationResponded

OxideCarbon
void OnNpcConversationResponded(NPCTalking nPCTalking, BasePlayer ply, ConversationData local0, ConversationData.AbstractSpeechNodeData local1, int responseIndex)

Returns nothing: it only tells you something happened. Called from NPCTalking.HandleResponse.

OnNpcConversationStart

OxideCarbon
void OnNpcConversationStart(NPCTalking nPCTalking, BasePlayer ply, ConversationData local2)

Returns nothing: it only tells you something happened. Called from NPCTalking.Server_BeginTalking.

OnNpcDuck

OxideCarbon
void OnNpcDuck(HumanNPC humanNPC)

Returns nothing: it only tells you something happened. Called from HumanNPC.SetDucked.

OnNpcEquipWeapon

OxideCarbon
void OnNpcEquipWeapon(ScientistNPC scientistNPC, Item local1)

Returns nothing: it only tells you something happened. Called from ScientistNPC.EquipWeapon, NPCPlayer.EquipWeapon.

OnNpcGiveSoldItem

OxideCarbon
void OnNpcGiveSoldItem(NPCVendingMachine nPCVendingMachine, Item soldItem, BasePlayer buyer)

Returns nothing: it only tells you something happened. Called from NPCVendingMachine.GiveSoldItem.

OnNpcRadioChatter

OxideCarbon
void OnNpcRadioChatter(ScientistNPC scientistNPC)

Returns nothing: it only tells you something happened. Called from ScientistNPC.PlayRadioChatter.

OnNpcTarget

OxideCarbon
void OnNpcTarget()

Returns nothing: it only tells you something happened. Called from HumanNPC.GetBestTarget, AIBrainSenses.GetNearest.

OnNpcTargetSense

OxideCarbon
void OnNpcTargetSense(BaseEntity owner, BaseEntity ent, AIBrainSenses brainSenses)

Returns nothing: it only tells you something happened. Called from Rust.Ai.SimpleAIMemory.SetKnown.

OnScientistInitialized

OxideCarbon
void OnScientistInitialized(BradleyAPC bradleyAPC, ScientistNPC scientist, Vector3 spawnPos)

Returns nothing: it only tells you something happened. Called from BradleyAPC.InitScientist.

OnScientistRecalled

OxideCarbon
void OnScientistRecalled(BradleyAPC bradleyAPC)

Returns nothing: it only tells you something happened. Called from BradleyAPC.OnScientistMounted.

Oxide & Carbon Hooks 52Server19

InitLogging

OxideCarbon
void InitLogging()

Returns nothing: it only tells you something happened. Called from Bootstrap.StartupShared.

OnBroadcastCommand

OxideCarbon
void OnBroadcastCommand(string strCommand, Object[] args)

Returns nothing: it only tells you something happened. Called from ConsoleNetwork.BroadcastToAllClients.

OnMessagePlayer

OxideCarbon
void OnMessagePlayer(string msg, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.ChatMessage.

OnNewSave

OxideCarbon
void OnNewSave(string strFilename)

Returns nothing: it only tells you something happened. Called from SaveRestore.Load.

OnPlayerActionBroadcast

OxideCarbon
void OnPlayerActionBroadcast()

Returns nothing: it only tells you something happened. Called from ConVar.Chat.BroadcastPlayerAction.

OnRconConnection

OxideCarbon
void OnRconConnection(IPAddress address)

Returns nothing: it only tells you something happened. Called from Facepunch.RCon/RConListener.ProcessConnections, Facepunch.Rcon.Listener.OnConnection.

OnSaveLoad

OxideCarbon
object OnSaveLoad(Entity] local1)

Return a non-null value to override what the game does; return null to let it continue. Called from SaveRestore.Load.

OnSendCommand

OxideCarbon
void OnSendCommand(Connection cn, string strCommand, Object[] args)

Returns nothing: it only tells you something happened. Called from ConsoleNetwork.SendClientCommand.

OnServerCommand

OxideCarbon
void OnServerCommand(ConsoleSystem.Arg arg)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnServerCommand.

OnServerInformationUpdated

OxideCarbon
void OnServerInformationUpdated()

Returns nothing: it only tells you something happened. Called from ServerMgr.UpdateServerInformation.

OnServerInitialize

OxideCarbon
void OnServerInitialize()

Returns nothing: it only tells you something happened. Called from ServerMgr.Initialize.

OnServerMessage

OxideCarbon
void OnServerMessage()

Returns nothing: it only tells you something happened. Called from ConVar.Chat.Broadcast.

OnServerRestart

OxideCarbon
void OnServerRestart(string strNotice, int iSeconds)

Returns nothing: it only tells you something happened. Called from ServerMgr.RestartServer.

OnServerRestartInterrupt

OxideCarbon
void OnServerRestartInterrupt()

Returns nothing: it only tells you something happened. Called from ServerMgr.RestartServer.

OnServerSave

OxideCarbon
void OnServerSave()

Returns nothing: it only tells you something happened. Called from SaveRestore.DoAutomatedSave.

OnServerShutdown

OxideCarbon
void OnServerShutdown()

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnServerShutdown.

OnServerUserRemove

OxideCarbon
void OnServerUserRemove()

Returns nothing: it only tells you something happened. Called from ServerUsers.Remove.

OnServerUserSet

OxideCarbon
void OnServerUserSet()

Returns nothing: it only tells you something happened. Called from ServerUsers.Set.

OnTick

OxideCarbon
void OnTick()

Returns nothing: it only tells you something happened. Called from ServerMgr.DoTick.

Oxide & Carbon Hooks 53Vending19

CanAccessVendingMachine

OxideCarbon
object CanAccessVendingMachine(DeliveryDroneConfig config, VendingMachine vendingMachine)

Return a non-null value to override what the game does; return null to let it continue. Called from MarketTerminal.<GetDeliveryEligibleVendingMachines>g__IsEligible|27_0.

CanAdministerVending

OxideCarbon
object CanAdministerVending(BasePlayer player, VendingMachine vendingMachine)

Return a non-null value to override what the game does; return null to let it continue. Called from VendingMachine.CanPlayerAdmin, NPCVendingMachine.CanPlayerAdmin.

CanPurchaseItem

OxideCarbon
object CanPurchaseItem(BasePlayer buyer, Item local21, Action[BasePlayer,Item] onItemPurchased, VendingMachine vendingMachine, ItemContainer targetContainer)

Return a non-null value to override what the game does; return null to let it continue. Called from VendingMachine.DoTransaction.

CanUseVending

OxideCarbon
object CanUseVending(BasePlayer player, VendingMachine vendingMachine)

Return a non-null value to override what the game does; return null to let it continue. Called from VendingMachine.CanOpenLootPanel.

CanVendingAcceptItem

OxideCarbon
object CanVendingAcceptItem(VendingMachine vendingMachine, Item item, int targetSlot, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from VendingMachine.CanAcceptItem.

OnAddVendingOffer

OxideCarbon
void OnAddVendingOffer(VendingMachine vendingMachine, VendingMachine.SellOrder local2)

Returns nothing: it only tells you something happened. Called from VendingMachine.AddSellOrder.

OnBuyVendingItem

OxideCarbon
void OnBuyVendingItem(VendingMachine vendingMachine, BasePlayer player, int local0, int local1)

Returns nothing: it only tells you something happened. Called from VendingMachine.BuyItem.

OnDeleteVendingOffer

OxideCarbon
void OnDeleteVendingOffer(VendingMachine vendingMachine, int local1)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_DeleteSellOrder.

OnGiveSoldItem

OxideCarbon
void OnGiveSoldItem(VendingMachine vendingMachine, Item soldItem, BasePlayer buyer)

Returns nothing: it only tells you something happened. Called from VendingMachine.GiveSoldItem.

OnMarketplaceTerminalPurchase

Carbon
void OnMarketplaceTerminalPurchase(MarketTerminal terminal, VendingMachine vending, BasePlayer player, int sellOrderIndex, int amount)

Returns nothing: it only tells you something happened. Called from MarketTerminal.Server_Purchase.

OnOpenVendingAdmin

OxideCarbon
void OnOpenVendingAdmin(VendingMachine vendingMachine, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_OpenAdmin.

OnRefreshVendingStock

OxideCarbon
void OnRefreshVendingStock(VendingMachine vendingMachine, ItemDefinition itemDef)

Returns nothing: it only tells you something happened. Called from VendingMachine.RefreshSellOrderStockLevel.

OnRotateVendingMachine

OxideCarbon
void OnRotateVendingMachine(VendingMachine vendingMachine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_RotateVM.

OnTakeCurrencyItem

OxideCarbon
void OnTakeCurrencyItem(VendingMachine vendingMachine, Item takenCurrencyItem)

Returns nothing: it only tells you something happened. Called from VendingMachine.TakeCurrencyItem, NPCVendingMachine.TakeCurrencyItem.

OnToggleVendingBroadcast

OxideCarbon
void OnToggleVendingBroadcast(VendingMachine vendingMachine, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_Broadcast.

OnVendingShopOpen

OxideCarbon
void OnVendingShopOpen(VendingMachine vendingMachine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_OpenShop, NPCTalking.OnConversationAction.

OnVendingShopOpened

OxideCarbon
void OnVendingShopOpened(VendingMachine vendingMachine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_OpenShop, NPCTalking.OnConversationAction.

OnVendingShopRename

OxideCarbon
void OnVendingShopRename(VendingMachine vendingMachine, string local1, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from VendingMachine.RPC_UpdateShopName.

OnVendingTransaction

OxideCarbon
object OnVendingTransaction(VendingMachine vendingMachine, BasePlayer buyer, int sellOrderId, int numberOfTransactions, ItemContainer targetContainer)

Return a non-null value to override what the game does; return null to let it continue. Called from VendingMachine.DoTransaction.

Oxide & Carbon Hooks 54Apartments18

CanAffordApartmentMasterKey

OxideCarbon
object CanAffordApartmentMasterKey(BasePlayer player, NPCApartmentSecurity nPCApartmentSecurity)

Return a non-null value to override what the game does; return null to let it continue. Called from NPCApartmentSecurity.Conversation_CanAffordMasterKey.

OnApartmentMasterKeyPurchase

OxideCarbon
void OnApartmentMasterKeyPurchase(BasePlayer player)

Returns nothing: it only tells you something happened. Called from NPCApartmentSecurity.OnPurchaseKey.

OnApartmentMasterKeyPurchased

OxideCarbon
void OnApartmentMasterKeyPurchased(BasePlayer player, Item local3)

Returns nothing: it only tells you something happened. Called from NPCApartmentSecurity.OnPurchaseKey.

OnApartmentMasterKeyPurchased [Patch]

OxideCarbon
void OnApartmentMasterKeyPurchased [Patch]()

Returns nothing: it only tells you something happened. Called from NPCApartmentSecurity.OnPurchaseKey.

OnApartmentRoomBreakInComplete

OxideCarbon
void OnApartmentRoomBreakInComplete(ApartmentRoom local1, BasePlayer player, ApartmentDoor apartmentDoor)

Returns nothing: it only tells you something happened. Called from ApartmentDoor.CompleteBreakIn.

OnApartmentRoomBreakInCompleted

OxideCarbon
void OnApartmentRoomBreakInCompleted(ApartmentRoom local1, BasePlayer player, ApartmentDoor apartmentDoor)

Returns nothing: it only tells you something happened. Called from ApartmentDoor.CompleteBreakIn.

OnApartmentRoomCheckedout

OxideCarbon
void OnApartmentRoomCheckedout(BasePlayer player, ApartmentRoom local0, ApartmentBuilding apartmentBuilding)

Returns nothing: it only tells you something happened. Called from ApartmentBuilding.TryCheckout.

OnApartmentRoomCheckout

OxideCarbon
void OnApartmentRoomCheckout()

Returns nothing: it only tells you something happened. Called from ApartmentBuilding.TryCheckout.

OnApartmentRoomPurchase

OxideCarbon
void OnApartmentRoomPurchase(ApartmentRoom local0, BasePlayer player, ApartmentSize size, ApartmentBuilding apartmentBuilding)

Returns nothing: it only tells you something happened. Called from ApartmentBuilding.PurchaseRoom.

OnApartmentRoomPurchased

OxideCarbon
void OnApartmentRoomPurchased(ApartmentRoom local0, BasePlayer player, ApartmentSize size, ApartmentBuilding apartmentBuilding)

Returns nothing: it only tells you something happened. Called from ApartmentBuilding.PurchaseRoom.

OnApartmentRoomUpgrade

OxideCarbon
void OnApartmentRoomUpgrade(ApartmentRoom local0, BasePlayer player, ApartmentSize size, ApartmentBuilding apartmentBuilding)

Returns nothing: it only tells you something happened. Called from ApartmentBuilding.TryUpgradeRoom.

OnApartmentRoomUpgraded

OxideCarbon
void OnApartmentRoomUpgraded(ApartmentRoom local1, BasePlayer player, ApartmentSize size, ApartmentBuilding apartmentBuilding)

Returns nothing: it only tells you something happened. Called from ApartmentBuilding.TryUpgradeRoom.

OnRentableShopBreakInComplete

OxideCarbon
void OnRentableShopBreakInComplete(RentableShop rentableShop, BasePlayer player)

Returns nothing: it only tells you something happened. Called from RentableShop.CompleteBreakIn.

OnRentableShopBreakInCompleted

OxideCarbon
void OnRentableShopBreakInCompleted(RentableShop rentableShop, BasePlayer player)

Returns nothing: it only tells you something happened. Called from RentableShop.CompleteBreakIn.

OnRentableShopClose

OxideCarbon
void OnRentableShopClose(RentableShop rentableShop)

Returns nothing: it only tells you something happened. Called from RentableShop.CloseStore.

OnRentableShopClosed

OxideCarbon
void OnRentableShopClosed(RentableShop rentableShop)

Returns nothing: it only tells you something happened. Called from RentableShop.OnShopClosed.

OnRentableShopOpen

OxideCarbon
void OnRentableShopOpen(RentableShop rentableShop, BasePlayer player)

Returns nothing: it only tells you something happened. Called from RentableShop.Server_OpenStore.

OnRentableShopOpened

OxideCarbon
void OnRentableShopOpened(RentableShop rentableShop)

Returns nothing: it only tells you something happened. Called from RentableShop.OnShopOpened.

Oxide & Carbon Hooks 55Naval18

CanEditPlayerBoat

OxideCarbon
object CanEditPlayerBoat(PlayerBoat playerBoat, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from PlayerBoat.CanStartEditing.

CanLightCannonFuse

OxideCarbon
object CanLightCannonFuse(Cannon cannon)

Return a non-null value to override what the game does; return null to let it continue. Called from Cannon.CanLightFuse.

CanLowerSail

OxideCarbon
object CanLowerSail(Sail sail, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from Sail.CanBeLowered.

CanRaiseSail

OxideCarbon
object CanRaiseSail(Sail sail, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from Sail.CanBeRaised.

CanRotateSail

OxideCarbon
object CanRotateSail(Sail sail, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from Sail.CanRotate.

CanTeleportDeepSea

OxideCarbon
object CanTeleportDeepSea(BaseEntity entity, DeepSeaPortal portal)

Return a non-null value to override what the game does; return null to let it continue. Called from TriggerDeepSeaPortal.CanEntityTeleport.

OnBoatGroupSpawn

OxideCarbon
void OnBoatGroupSpawn(BoatGroupSpawner boatGroupSpawner, Vector2 local1, Quaternion local4, HashSet[RHIB] list, bool local3, bool spawnsPT)

Returns nothing: it only tells you something happened. Called from BoatGroupSpawner.SpawnBoatGroup.

OnBoatGroupSpawned

OxideCarbon
void OnBoatGroupSpawned(BoatGroupSpawner boatGroupSpawner, Vector2 local1, Quaternion local4, HashSet[RHIB] list, bool local3, bool spawnsPT)

Returns nothing: it only tells you something happened. Called from BoatGroupSpawner.SpawnBoatGroup.

OnDeepSeaClose

OxideCarbon
void OnDeepSeaClose(DeepSeaManager local1)

Returns nothing: it only tells you something happened. Called from DeepSeaManager/<CloseDeepSeaAsync>d__80.MoveNext.

OnDeepSeaClosed

OxideCarbon
void OnDeepSeaClosed(DeepSeaManager local1)

Returns nothing: it only tells you something happened. Called from DeepSeaManager/<CloseDeepSeaAsync>d__80.MoveNext.

OnDeepSeaOpen

OxideCarbon
void OnDeepSeaOpen(DeepSeaManager local1)

Returns nothing: it only tells you something happened. Called from DeepSeaManager/<OpenDeepSeaAsync>d__78.MoveNext.

OnDeepSeaOpened

OxideCarbon
void OnDeepSeaOpened(DeepSeaManager local1)

Returns nothing: it only tells you something happened. Called from DeepSeaManager/<OpenDeepSeaAsync>d__78.MoveNext.

OnDeepSeaTeleport

OxideCarbon
void OnDeepSeaTeleport(TriggerDeepSeaPortal triggerDeepSeaPortal, BaseEntity ent)

Returns nothing: it only tells you something happened. Called from TriggerDeepSeaPortal.OnEntityEnter.

OnEngineReverse

OxideCarbon
void OnEngineReverse(SmallEngine smallEngine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SmallEngine.SV_ToggleReverse.

OnEngineStart

OxideCarbon
void OnEngineStart(SmallEngine smallEngine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SmallEngine.TurnOn, MotorRowboat.EngineToggle.

OnEngineStop

OxideCarbon
void OnEngineStop(SmallEngine smallEngine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SmallEngine.TurnOff, VehicleEngineController`1.StopEngine.

OnPlayerBoatCollide

OxideCarbon
void OnPlayerBoatCollide(PlayerBoat playerBoat, BaseEntity local0, Collision collision)

Returns nothing: it only tells you something happened. Called from PlayerBoat.ProcessCollision.

OnPlayerBoatEditStarted

OxideCarbon
void OnPlayerBoatEditStarted(PlayerBoat local1, BoatBuildingStation boatBuildingStation)

Returns nothing: it only tells you something happened. Called from BoatBuildingStation.ConvertPlayerBoatToConstruction.

Oxide & Carbon Hooks 56Global16

CanAcceptBackpackItem

Carbon
object CanAcceptBackpackItem(Item backpack, Item item)

Return a non-null value to override what the game does; return null to let it continue. Called from ItemModBackpack.CanAcceptItem.

CanPatrolHeliSeePlayer

Carbon
object CanPatrolHeliSeePlayer(PatrolHelicopterAI heli, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from PatrolHelicopterAI.PlayerVisible.

CanPickupAllFromRack

Carbon
void CanPickupAllFromRack(WeaponRack rack, BasePlayer player, int mountSlotIndex)

Returns nothing: it only tells you something happened. Called from WeaponRack.GivePlayerAllWeapons.

CanPickupFromRack

Carbon
void CanPickupFromRack(WeaponRack rack, BasePlayer player, Item item, int mountSlotIndex, int playerBeltIndex, bool tryHold)

Returns nothing: it only tells you something happened. Called from WeaponRack.GivePlayerWeapon.

CanPlaceOnRack

Carbon
object CanPlaceOnRack(WeaponRack rack, BasePlayer player, Item item, int gridCellIndex, int rotation)

Return a non-null value to override what the game does; return null to let it continue. Called from WeaponRack.MountWeapon.

CanPlayerInheritNetworkGroup

Carbon
object CanPlayerInheritNetworkGroup(BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from BasePlayer.ShouldInheritNetworkGroup.

OnChairComfort

Carbon
object OnChairComfort(BaseChair chair)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseChair.GetComfort.

OnConsoleCommand

Carbon
void OnConsoleCommand()

Returns nothing: it only tells you something happened. Called from ConsoleSystem.RunWithResult.

OnEntitySaved

OxideCarbon
void OnEntitySaved(BaseNetworkable networkable, BaseNetworkable.SaveInfo info)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.ToStream.

OnEntitySpawn

Carbon
void OnEntitySpawn(BaseNetworkable networkable)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.Spawn.

OnGrowableUpdate

Carbon
void OnGrowableUpdate(GrowableEntity growable)

Returns nothing: it only tells you something happened. Called from GrowableEntity.RunUpdate.

OnLoseCondition

OxideCarbon
void OnLoseCondition(Item item, float amount)

Returns nothing: it only tells you something happened. Called from Carbon.Core.CorePlugin.IOnLoseCondition.

OnNativeCommandHasPermission

Carbon
object OnNativeCommandHasPermission(ConsoleSystem.Arg arg)

Return a non-null value to override what the game does; return null to let it continue. Called from ConsoleSystem+Arg.HasPermission.

OnPickupFromRack

Carbon
void OnPickupFromRack(WeaponRack rack, BasePlayer player, Item item, int mountSlotIndex, int playerBeltIndex, bool tryHold)

Returns nothing: it only tells you something happened. Called from WeaponRack.GivePlayerWeapon.

OnRconCommand

OxideCarbon
void OnRconCommand(IPAddress ip, string command, String[] arguments)

Returns nothing: it only tells you something happened. Called from Facepunch.RCon.OnCommand.

OnServerInitialized

OxideCarbon
void OnServerInitialized(bool initialized)

Returns nothing: it only tells you something happened. Called from ServerMgr.OpenConnection.

Oxide & Carbon Hooks 57Radio15

OnBoomboxStationUpdate

OxideCarbon
void OnBoomboxStationUpdate(BoomBox boomBox, string local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BoomBox.Server_UpdateRadioIP.

OnBoomboxStationUpdated

OxideCarbon
void OnBoomboxStationUpdated(BoomBox boomBox, string local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BoomBox.Server_UpdateRadioIP.

OnBoomboxStationValidate

OxideCarbon
object OnBoomboxStationValidate(string url)

Return a non-null value to override what the game does; return null to let it continue. Called from BoomBox.IsStationValid.

OnBoomboxToggle

OxideCarbon
void OnBoomboxToggle(BoomBox boomBox, BasePlayer player, bool local1)

Returns nothing: it only tells you something happened. Called from BoomBox.ServerTogglePlay.

OnRfBroadcasterAdd

OxideCarbon
void OnRfBroadcasterAdd(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.AddBroadcaster.

OnRfBroadcasterAdded

OxideCarbon
void OnRfBroadcasterAdded(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.AddBroadcaster.

OnRfBroadcasterRemove

OxideCarbon
void OnRfBroadcasterRemove(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.RemoveBroadcaster.

OnRfBroadcasterRemoved

OxideCarbon
void OnRfBroadcasterRemoved(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.RemoveBroadcaster.

OnRfFrequencyChange

OxideCarbon
void OnRfFrequencyChange(RFBroadcaster rFBroadcaster, int local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from RFBroadcaster.ServerSetFrequency, RFReceiver.ServerSetFrequency.

OnRfFrequencyChanged

OxideCarbon
void OnRfFrequencyChanged(RFBroadcaster rFBroadcaster, int local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from RFBroadcaster.ServerSetFrequency, RFReceiver.ServerSetFrequency.

OnRfListenerAdd

OxideCarbon
void OnRfListenerAdd(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.AddListener.

OnRfListenerAdded

OxideCarbon
void OnRfListenerAdded(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.AddListener.

OnRfListenerRemove

OxideCarbon
void OnRfListenerRemove(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.RemoveListener.

OnRfListenerRemoved

OxideCarbon
void OnRfListenerRemoved(IRFObject obj, int frequency)

Returns nothing: it only tells you something happened. Called from RFManager.RemoveListener.

OnRfListenerRemoved [patch]

OxideCarbon
void OnRfListenerRemoved [patch]()

Returns nothing: it only tells you something happened. Called from RFManager.RemoveListener.

Oxide & Carbon Hooks 58Permissions14

OnGroupCreated

OxideCarbon
void OnGroupCreated(string group, string title, int rank)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.CreateGroup.

OnGroupDeleted

OxideCarbon
void OnGroupDeleted(string group)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.RemoveGroup.

OnGroupParentSet

OxideCarbon
void OnGroupParentSet(string group, string parentGroup)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.SetGroupParent.

OnGroupPermissionGranted

OxideCarbon
void OnGroupPermissionGranted(string group, string permission)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.GrantGroupPermission.

OnGroupPermissionRevoked

OxideCarbon
void OnGroupPermissionRevoked(string group, string permission)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.RevokeGroupPermission.

OnGroupRankSet

OxideCarbon
void OnGroupRankSet(string group, int rank)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.SetGroupRank.

OnGroupTitleSet

OxideCarbon
void OnGroupTitleSet(string group, string title)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.SetGroupTitle.

OnPermissionRegistered

OxideCarbon
void OnPermissionRegistered(string permission, Plugin plugin)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.RegisterPermission.

OnPermissionsUnregistered

OxideCarbon
void OnPermissionsUnregistered(Plugin plugin)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.UnregisterPermissions.

OnUserGroupAdded

OxideCarbon
void OnUserGroupAdded(string playerId, string group)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.AddUserGroup.

OnUserGroupRemoved

OxideCarbon
void OnUserGroupRemoved(string playerId, string group)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.RemoveUserGroup.

OnUserNameUpdated

OxideCarbon
void OnUserNameUpdated(string id, string oldName, string newName)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.UpdateNickname.

OnUserPermissionGranted

OxideCarbon
void OnUserPermissionGranted(string playerId, string permission)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.GrantUserPermission.

OnUserPermissionRevoked

OxideCarbon
void OnUserPermissionRevoked(string playerId, string permission)

Returns nothing: it only tells you something happened. Called from Oxide.Core.Libraries.Permission.RevokeUserPermission.

Oxide & Carbon Hooks 59Turret14

OnInterferenceUpdate

OxideCarbon
object OnInterferenceUpdate(AutoTurret autoTurret)

Return a non-null value to override what the game does; return null to let it continue. Called from AutoTurret.RecalculateInterference.

OnNearbyTurretsScan

OxideCarbon
void OnNearbyTurretsScan()

Returns nothing: it only tells you something happened. Called from AutoTurret.AddNearbyTurrets.

OnTurretAssign

OxideCarbon
void OnTurretAssign(AutoTurret autoTurret, ulong local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.AssignToFriend.

OnTurretAssigned

OxideCarbon
void OnTurretAssigned(AutoTurret autoTurret, ulong local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.AssignToFriend.

OnTurretAuthorize

OxideCarbon
void OnTurretAuthorize(AutoTurret autoTurret, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.AddSelfAuthorize.

OnTurretClearList

OxideCarbon
void OnTurretClearList(AutoTurret autoTurret, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.ClearList.

OnTurretDeauthorize

OxideCarbon
void OnTurretDeauthorize(AutoTurret autoTurret, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.RemoveSelfAuthorize.

OnTurretIdentifierSet

OxideCarbon
void OnTurretIdentifierSet(AutoTurret autoTurret, BasePlayer player, string newID)

Returns nothing: it only tells you something happened. Called from AutoTurret.SetID.

OnTurretModeToggle

OxideCarbon
void OnTurretModeToggle(AutoTurret autoTurret, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.SERVER_Peacekeeper, AutoTurret.SERVER_AttackAll.

OnTurretRotate

OxideCarbon
void OnTurretRotate(AutoTurret autoTurret, BasePlayer player)

Returns nothing: it only tells you something happened. Called from AutoTurret.FlipAim.

OnTurretShutdown

OxideCarbon
void OnTurretShutdown(AutoTurret autoTurret)

Returns nothing: it only tells you something happened. Called from AutoTurret.InitiateShutdown.

OnTurretStartup

OxideCarbon
void OnTurretStartup(AutoTurret autoTurret)

Returns nothing: it only tells you something happened. Called from AutoTurret.InitiateStartup.

OnTurretTarget

OxideCarbon
void OnTurretTarget(AutoTurret autoTurret)

Returns nothing: it only tells you something happened. Called from AutoTurret.SetTarget.

OnTurretToggle

OxideCarbon
void OnTurretToggle(AutoTurret autoTurret)

Returns nothing: it only tells you something happened. Called from AutoTurret.SetIsOnline.

Oxide & Carbon Hooks 60Animal13

CanLivestockAnimalRefuseTarget

OxideCarbon
object CanLivestockAnimalRefuseTarget(LivestockAnimal livestockAnimal, BasePlayer local0)

Return a non-null value to override what the game does; return null to let it continue. Called from Rust.Ai.Gen2.LivestockAnimal.RefusesToTarget.

OnAnimalDungProduce

OxideCarbon
void OnAnimalDungProduce(RidableHorse ridableHorse)

Returns nothing: it only tells you something happened. Called from RidableHorse.DoDung.

OnAnimalDungProduced

OxideCarbon
void OnAnimalDungProduced(RidableHorse ridableHorse)

Returns nothing: it only tells you something happened. Called from RidableHorse.DoDung.

OnCowMilk

OxideCarbon
object OnCowMilk(Cow cow, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from Rust.Ai.Gen2.Cow.TryMilk.

OnCowMilked

OxideCarbon
void OnCowMilked(Cow cow, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Rust.Ai.Gen2.Cow.TryMilk.

OnHorseHitch

OxideCarbon
object OnHorseHitch()

Return a non-null value to override what the game does; return null to let it continue. Called from HitchTrough.AttemptToHitch.

OnHorseLead

OxideCarbon
void OnHorseLead(RidableHorse ridableHorse, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from RidableHorse.SERVER_Lead.

OnHorseUnhitch

OxideCarbon
void OnHorseUnhitch(HitchTrough.IHitchable hitchable, HitchTrough.HitchSpot local2)

Returns nothing: it only tells you something happened. Called from HitchTrough.UnHitch.

OnLivestockAnimalClaim

OxideCarbon
void OnLivestockAnimalClaim(LivestockAnimal livestockAnimal, HitchTrough trough)

Returns nothing: it only tells you something happened. Called from Rust.Ai.Gen2.LivestockAnimal.ClaimByTrough.

OnLivestockAnimalFamiliarityAdd

OxideCarbon
void OnLivestockAnimalFamiliarityAdd(LivestockAnimal livestockAnimal)

Returns nothing: it only tells you something happened. Called from Rust.Ai.Gen2.LivestockAnimal.AddFamiliarity.

OnLivestockAnimalFamiliarityAdded

OxideCarbon
void OnLivestockAnimalFamiliarityAdded(LivestockAnimal livestockAnimal)

Returns nothing: it only tells you something happened. Called from Rust.Ai.Gen2.LivestockAnimal.AddFamiliarity.

OnRidableAnimalClaim

OxideCarbon
void OnRidableAnimalClaim(RidableHorse ridableHorse, BasePlayer local0, Item local2)

Returns nothing: it only tells you something happened. Called from RidableHorse.SERVER_Claim.

OnRidableAnimalClaimed

OxideCarbon
void OnRidableAnimalClaimed(RidableHorse ridableHorse, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from RidableHorse.SERVER_Claim.

Oxide & Carbon Hooks 61Team12

OnTeamAcceptInvite

OxideCarbon
void OnTeamAcceptInvite(RelationshipManager.PlayerTeam local2, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from RelationshipManager.acceptinvite.

OnTeamCreate

OxideCarbon
void OnTeamCreate(BasePlayer player)

Returns nothing: it only tells you something happened. Called from RelationshipManager.TryCreateTeam.

OnTeamCreated

OxideCarbon
void OnTeamCreated(BasePlayer player, RelationshipManager.PlayerTeam local0)

Returns nothing: it only tells you something happened. Called from RelationshipManager.TryCreateTeam.

OnTeamDisband

OxideCarbon
void OnTeamDisband()

Returns nothing: it only tells you something happened. Called from RelationshipManager.DisbandTeam.

OnTeamDisbanded

OxideCarbon
void OnTeamDisbanded()

Returns nothing: it only tells you something happened. Called from RelationshipManager.DisbandTeam.

OnTeamKick

OxideCarbon
void OnTeamKick(RelationshipManager.PlayerTeam local1, BasePlayer local0, ulong local2)

Returns nothing: it only tells you something happened. Called from RelationshipManager.kickmember.

OnTeamLeave

OxideCarbon
void OnTeamLeave(RelationshipManager.PlayerTeam local1, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from RelationshipManager.leaveteam.

OnTeamMemberInvite

OxideCarbon
void OnTeamMemberInvite(RelationshipManager.PlayerTeam local1, BasePlayer local0, ulong local2)

Returns nothing: it only tells you something happened. Called from RelationshipManager.sendofflineinvite, RelationshipManager.sendinvite.

OnTeamMemberPromote

OxideCarbon
void OnTeamMemberPromote(RelationshipManager.PlayerTeam playerTeam)

Returns nothing: it only tells you something happened. Called from RelationshipManager/PlayerTeam.SetTeamLeader.

OnTeamRejectInvite

OxideCarbon
void OnTeamRejectInvite(BasePlayer local0, RelationshipManager.PlayerTeam local2)

Returns nothing: it only tells you something happened. Called from RelationshipManager.rejectinvite.

OnTeamUpdate

OxideCarbon
void OnTeamUpdate(ulong currentTeam, ulong newTeam, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.UpdateTeam.

OnTeamUpdated

OxideCarbon
void OnTeamUpdated(ulong currentTeam, PlayerTeam local3, BasePlayer basePlayer)

Returns nothing: it only tells you something happened. Called from BasePlayer.TeamUpdate.

Oxide & Carbon Hooks 62Phone10

CanReceiveCall

OxideCarbon
object CanReceiveCall(PhoneController phoneController)

Return a non-null value to override what the game does; return null to let it continue. Called from PhoneController.CanReceiveCall.

OnPhoneAnswer

OxideCarbon
void OnPhoneAnswer(PhoneController phoneController, PhoneController activeOtherPhoneController)

Returns nothing: it only tells you something happened. Called from PhoneController.AnswerPhone.

OnPhoneAnswered

OxideCarbon
void OnPhoneAnswered(PhoneController phoneController, PhoneController activeOtherPhoneController)

Returns nothing: it only tells you something happened. Called from PhoneController.AnswerPhone.

OnPhoneCallStart

OxideCarbon
void OnPhoneCallStart(PhoneController phoneController, PhoneController activeOtherPhoneController, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.BeginCall.

OnPhoneCallStarted

OxideCarbon
void OnPhoneCallStarted(PhoneController phoneController, PhoneController activeOtherPhoneController, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.BeginCall.

OnPhoneDial

OxideCarbon
void OnPhoneDial(PhoneController phoneController, PhoneController local0, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.CallPhone.

OnPhoneDialFail

OxideCarbon
void OnPhoneDialFail(PhoneController phoneController, Telephone.DialFailReason reason, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.OnDialFailed.

OnPhoneDialFailed

OxideCarbon
void OnPhoneDialFailed(PhoneController phoneController, Telephone.DialFailReason reason, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.OnDialFailed.

OnPhoneDialTimedOut

OxideCarbon
void OnPhoneDialTimedOut(PhoneController activeOtherPhoneController, PhoneController phoneController, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.TimeOutDialing.

OnPhoneDialTimeout

OxideCarbon
void OnPhoneDialTimeout(PhoneController activeOtherPhoneController, PhoneController phoneController, BasePlayer currentPlayer)

Returns nothing: it only tells you something happened. Called from PhoneController.TimeOutDialing.

Oxide & Carbon Hooks 63Bookmark9

OnBookmarkAdd

OxideCarbon
void OnBookmarkAdd(ComputerStation computerStation, BasePlayer local0, string local1)

Returns nothing: it only tells you something happened. Called from ComputerStation.AddBookmark.

OnBookmarkControl

OxideCarbon
void OnBookmarkControl(ComputerStation computerStation, BasePlayer local0, string local1, IRemoteControllable local2)

Returns nothing: it only tells you something happened. Called from ComputerStation.BeginControllingBookmark.

OnBookmarkControlEnd

OxideCarbon
void OnBookmarkControlEnd(ComputerStation computerStation, BasePlayer ply, BaseEntity local0)

Returns nothing: it only tells you something happened. Called from ComputerStation.StopControl.

OnBookmarkControlEnded

OxideCarbon
void OnBookmarkControlEnded(ComputerStation computerStation, BasePlayer ply, BaseEntity local0)

Returns nothing: it only tells you something happened. Called from ComputerStation.StopControl, ComputerStation.BeginControllingBookmark.

OnBookmarkControlEnded [2] [patch]

OxideCarbon
void OnBookmarkControlEnded [2] [patch]()

Returns nothing: it only tells you something happened. Called from ComputerStation.BeginControllingBookmark.

OnBookmarkControlStarted

OxideCarbon
void OnBookmarkControlStarted(ComputerStation computerStation, BasePlayer local0, string local1, IRemoteControllable local2)

Returns nothing: it only tells you something happened. Called from ComputerStation.BeginControllingBookmark.

OnBookmarkDelete

OxideCarbon
void OnBookmarkDelete(ComputerStation computerStation, BasePlayer mountedPlayer, string identifier)

Returns nothing: it only tells you something happened. Called from ComputerStation.RemoveBookmark.

OnBookmarkInput

OxideCarbon
void OnBookmarkInput(ComputerStation computerStation, BasePlayer player, InputState inputState)

Returns nothing: it only tells you something happened. Called from ComputerStation.PlayerServerInput.

OnBookmarksSendControl

OxideCarbon
void OnBookmarksSendControl(ComputerStation computerStation, BasePlayer player, string local0)

Returns nothing: it only tells you something happened. Called from ComputerStation.SendControlBookmarks.

Oxide & Carbon Hooks 64Seasonal9

CanBeAwardedAdventGift

OxideCarbon
void CanBeAwardedAdventGift()

Returns nothing: it only tells you something happened. Called from AdventCalendar.WasAwardedTodaysGift.

OnAdventGiftAward

OxideCarbon
void OnAdventGiftAward(AdventCalendar adventCalendar)

Returns nothing: it only tells you something happened. Called from AdventCalendar.AwardGift.

OnAdventGiftAwarded

OxideCarbon
void OnAdventGiftAwarded(AdventCalendar adventCalendar)

Returns nothing: it only tells you something happened. Called from AdventCalendar.AwardGift.

OnEventCollectablePickup

OxideCarbon
void OnEventCollectablePickup(BasePlayer player, CollectableEasterEgg collectableEasterEgg)

Returns nothing: it only tells you something happened. Called from CollectableEasterEgg.RPC_PickUp.

OnHuntEventEnd

OxideCarbon
void OnHuntEventEnd(EggHuntEvent eggHuntEvent)

Returns nothing: it only tells you something happened. Called from EggHuntEvent.Update.

OnHuntEventStart

OxideCarbon
void OnHuntEventStart(EggHuntEvent eggHuntEvent)

Returns nothing: it only tells you something happened. Called from EggHuntEvent.StartEvent.

OnXmasGiftsDistribute

OxideCarbon
void OnXmasGiftsDistribute()

Returns nothing: it only tells you something happened. Called from XMasRefill.DistributeGiftsForPlayer.

OnXmasLootDistribute

OxideCarbon
void OnXmasLootDistribute(XMasRefill xMasRefill)

Returns nothing: it only tells you something happened. Called from XMasRefill.ServerInit.

OnXmasStockingFill

OxideCarbon
void OnXmasStockingFill(Stocking stocking)

Returns nothing: it only tells you something happened. Called from Stocking.SpawnLoot.

Oxide & Carbon Hooks 65Clan8

OnClanColorChanged

OxideCarbon
void OnClanColorChanged(LocalClan local0, Color32 newColor, ulong bySteamId)

Returns nothing: it only tells you something happened. Called from LocalClan/<SetColor>d__61.MoveNext.

OnClanCreated

OxideCarbon
void OnClanCreated(LocalClan clan, ulong leaderSteamId)

Returns nothing: it only tells you something happened. Called from LocalClanBackend.Create.

OnClanDisbanded

OxideCarbon
void OnClanDisbanded(LocalClan local1, ulong bySteamId)

Returns nothing: it only tells you something happened. Called from LocalClan/<Disband>d__72.MoveNext.

OnClanLogoChanged

OxideCarbon
void OnClanLogoChanged(LocalClan local0, Byte[] newLogo, ulong bySteamId)

Returns nothing: it only tells you something happened. Called from LocalClan/<SetLogo>d__60.MoveNext.

OnClanLogoChanged [patch]

OxideCarbon
void OnClanLogoChanged [patch]()

Returns nothing: it only tells you something happened. Called from LocalClan/<SetLogo>d__60.MoveNext.

OnClanMemberAdded

OxideCarbon
void OnClanMemberAdded()

Returns nothing: it only tells you something happened. Called from LocalClanDatabase.AcceptInvite.

OnClanMemberKicked

OxideCarbon
void OnClanMemberKicked(LocalClan local1, ulong steamId, ulong bySteamId)

Returns nothing: it only tells you something happened. Called from LocalClan/<Kick>d__65.MoveNext.

OnClanMemberLeft

OxideCarbon
void OnClanMemberLeft(LocalClan local1, ulong steamId)

Returns nothing: it only tells you something happened. Called from LocalClan/<Kick>d__65.MoveNext.

Oxide & Carbon Hooks 66Crafting7

CanBeRecycled

OxideCarbon
object CanBeRecycled(Item item, Recycler recycler)

Return a non-null value to override what the game does; return null to let it continue. Called from Recycler.CanBeRecycled.

CanCraft

OxideCarbon
object CanCraft(ItemCrafter itemCrafter)

Return a non-null value to override what the game does; return null to let it continue. Called from ItemCrafter.CanCraft, PlayerBlueprints.CanCraft.

CanRecycle

OxideCarbon
object CanRecycle(Recycler recycler, Item local1)

Return a non-null value to override what the game does; return null to let it continue. Called from Recycler.HasRecyclable.

OnEntityReskin

OxideCarbon
void OnEntityReskin(BaseEntity local3, ulong local5, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SprayCan.ChangeItemSkin.

OnEntityReskinned

OxideCarbon
void OnEntityReskinned(BaseEntity local3, ulong local5, BasePlayer player)

Returns nothing: it only tells you something happened. Called from SprayCan.ChangeItemSkin.

OnIngredientsCollect

OxideCarbon
void OnIngredientsCollect(ItemCrafter itemCrafter)

Returns nothing: it only tells you something happened. Called from ItemCrafter.CollectIngredients.

OnSprayCreate

OxideCarbon
void OnSprayCreate(SprayCan sprayCan, Vector3 local0, Quaternion local5)

Returns nothing: it only tells you something happened. Called from SprayCan.CreateSpray.

Oxide & Carbon Hooks 67Fuel7

CanCheckFuel

OxideCarbon
object CanCheckFuel(EntityFuelSystem entityFuelSystem, StorageContainer local0, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from EntityFuelSystem.IsInFuelInteractionRange.

CanUseFuel

OxideCarbon
object CanUseFuel(EntityFuelSystem entityFuelSystem, StorageContainer local0, float seconds, float fuelUsedPerSecond)

Return a non-null value to override what the game does; return null to let it continue. Called from EntityFuelSystem.TryUseFuel.

OnFuelAmountCheck

OxideCarbon
object OnFuelAmountCheck(EntityFuelSystem entityFuelSystem, Item local0)

Return a non-null value to override what the game does; return null to let it continue. Called from EntityFuelSystem.GetFuelAmount.

OnFuelCheck

OxideCarbon
object OnFuelCheck(EntityFuelSystem entityFuelSystem)

Return a non-null value to override what the game does; return null to let it continue. Called from EntityFuelSystem.HasFuel.

OnFuelConsume

OxideCarbon
void OnFuelConsume(BaseOven baseOven)

Returns nothing: it only tells you something happened. Called from BaseOven.ConsumeFuel.

OnFuelConsumed

OxideCarbon
void OnFuelConsumed(BaseOven baseOven)

Returns nothing: it only tells you something happened. Called from BaseOven.ConsumeFuel.

OnFuelItemCheck

OxideCarbon
object OnFuelItemCheck(EntityFuelSystem entityFuelSystem, StorageContainer local0)

Return a non-null value to override what the game does; return null to let it continue. Called from EntityFuelSystem.GetFuelItem.

Oxide & Carbon Hooks 68Plugin7

Init

OxideCarbon
void Init()

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.InitializePlugin.

LoadDefaultMessages

OxideCarbon
void LoadDefaultMessages()

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.InitializePlugin.

Loaded

OxideCarbon
void Loaded()

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.InitializePlugin.

OnLoaded

OxideCarbon
void OnLoaded()

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.InitializePlugin.

OnPluginCompileFailure

Carbon
void OnPluginCompileFailure(string pluginName, Exception error)

Returns nothing: it only tells you something happened. Called from Carbon.Managers.ScriptLoader.Compile.

OnPluginOutdated

Carbon
void OnPluginOutdated(string pluginName, VersionNumber currentVersion, VersionNumber newVersion, Plugin plugin, string vendorName)

Returns nothing: it only tells you something happened. Called from Carbon.Modules.AdminModule+PluginsTab+Vendor.VersionCheck.

Unload

OxideCarbon
void Unload()

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.InitializePlugin.

Oxide & Carbon Hooks 69Firework6

CanDesignFirework

OxideCarbon
object CanDesignFirework(BasePlayer player, PatternFirework patternFirework)

Return a non-null value to override what the game does; return null to let it continue. Called from PatternFirework.PlayerCanModify.

OnFireworkDamage

OxideCarbon
void OnFireworkDamage(BaseFirework baseFirework)

Returns nothing: it only tells you something happened. Called from BaseFirework.OnAttacked.

OnFireworkDesignChange

OxideCarbon
void OnFireworkDesignChange(PatternFirework patternFirework, PatternFirework.Design local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from PatternFirework.ServerSetFireworkDesign.

OnFireworkDesignChanged

OxideCarbon
void OnFireworkDesignChanged(PatternFirework patternFirework, PatternFirework.Design local0, BasePlayer player)

Returns nothing: it only tells you something happened. Called from PatternFirework.ServerSetFireworkDesign.

OnFireworkExhausted

OxideCarbon
void OnFireworkExhausted(BaseFirework baseFirework)

Returns nothing: it only tells you something happened. Called from BaseFirework.OnExhausted.

OnFireworkStarted

OxideCarbon
void OnFireworkStarted(BaseFirework baseFirework)

Returns nothing: it only tells you something happened. Called from BaseFirework.Begin.

Oxide & Carbon Hooks 70Fishing6

CanCastFishingRod

OxideCarbon
void CanCastFishingRod()

Returns nothing: it only tells you something happened. Called from BaseFishingRod.Server_RequestCast.

CanCatchFish

OxideCarbon
void CanCatchFish()

Returns nothing: it only tells you something happened. Called from BaseFishingRod.CatchProcessBudgeted.

OnFishCatch

OxideCarbon
void OnFishCatch()

Returns nothing: it only tells you something happened. Called from BaseFishingRod.CatchProcessBudgeted.

OnFishCaught

OxideCarbon
void OnFishCaught(ItemDefinition currentFishTarget, BaseFishingRod baseFishingRod, BasePlayer local2)

Returns nothing: it only tells you something happened. Called from BaseFishingRod.CatchProcessBudgeted.

OnFishingRodCast

OxideCarbon
void OnFishingRodCast(BaseFishingRod baseFishingRod, BasePlayer local1, Item local2)

Returns nothing: it only tells you something happened. Called from BaseFishingRod.Server_RequestCast.

OnFishingStopped

OxideCarbon
void OnFishingStopped(BaseFishingRod baseFishingRod, BaseFishingRod.FailReason reason)

Returns nothing: it only tells you something happened. Called from BaseFishingRod.Server_Cancel.

Oxide & Carbon Hooks 71Mission6

CanAssignMission

OxideCarbon
object CanAssignMission(BasePlayer assignee, BaseMission mission, IMissionProvider provider)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseMission.AssignMission.

OnMissionAssigned

OxideCarbon
void OnMissionAssigned(BaseMission mission, IMissionProvider provider, BasePlayer assignee)

Returns nothing: it only tells you something happened. Called from BaseMission.AssignMission.

OnMissionFailed

OxideCarbon
void OnMissionFailed(BaseMission baseMission, BaseMission.MissionInstance instance, BasePlayer assignee, BaseMission.MissionFailReason failReason)

Returns nothing: it only tells you something happened. Called from BaseMission.MissionFailed.

OnMissionStart

OxideCarbon
void OnMissionStart(BaseMission baseMission)

Returns nothing: it only tells you something happened. Called from BaseMission.MissionStart.

OnMissionStarted

OxideCarbon
void OnMissionStarted(BaseMission baseMission)

Returns nothing: it only tells you something happened. Called from BaseMission.MissionStart.

OnMissionSucceeded

OxideCarbon
void OnMissionSucceeded(BaseMission baseMission)

Returns nothing: it only tells you something happened. Called from BaseMission.MissionSuccess.

Oxide & Carbon Hooks 72Primitive6

OnCatapultFireForce

OxideCarbon
object OnCatapultFireForce(Catapult catapult, BasePlayer shooter, float local1)

Can return a value (float); return null to keep the default behaviour. Called from Catapult.Fire.

OnMountedWeaponReload

OxideCarbon
object OnMountedWeaponReload(BaseMountedWeapon baseMountedWeapon, BasePlayer player)

Return a non-null value to override what the game does; return null to let it continue. Called from BaseMountedWeapon.ServerStartReload.

OnSiegeWeaponDoorClose

OxideCarbon
void OnSiegeWeaponDoorClose(BatteringRam batteringRam, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BatteringRam.RPC_CloseDoor.

OnSiegeWeaponDoorOpen

OxideCarbon
void OnSiegeWeaponDoorOpen(BatteringRam batteringRam, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BatteringRam.RPC_OpenDoor.

OnSiegeWeaponFire

OxideCarbon
void OnSiegeWeaponFire(Catapult catapult, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from Catapult.SERVER_WantsFire, BatteringRam.SERVER_WantsAttack.

OnSiegeWeaponPull

OxideCarbon
void OnSiegeWeaponPull(BaseSiegeWeapon baseSiegeWeapon, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BaseSiegeWeapon.SERVER_StartPulling.

Oxide & Carbon Hooks 73Elevator5

CanElevatorLiftMove

OxideCarbon
object CanElevatorLiftMove(ElevatorLift elevatorLift)

Return a non-null value to override what the game does; return null to let it continue. Called from ElevatorLift.CanMove.

OnElevatorButtonPress

OxideCarbon
void OnElevatorButtonPress(ElevatorLift elevatorLift, BasePlayer player, int local0, bool local1)

Returns nothing: it only tells you something happened. Called from ElevatorLift.Server_RaiseLowerFloor.

OnElevatorCall

OxideCarbon
void OnElevatorCall(Elevator elevator, Elevator elevatorEnt)

Returns nothing: it only tells you something happened. Called from Elevator.<CallElevator>b__26_0.

OnElevatorMove

OxideCarbon
void OnElevatorMove()

Returns nothing: it only tells you something happened. Called from Elevator.RequestMoveLiftTo.

OnLiftUse

OxideCarbon
void OnLiftUse(Lift lift, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Lift.RPC_UseLift, ProceduralLift.RPC_UseLift.

Oxide & Carbon Hooks 74Engine5

LoadDefaultConfig

OxideCarbon
void LoadDefaultConfig()

Returns nothing: it only tells you something happened. Called from Oxide.Core.Plugins.Plugin.LoadConfig.

OnCompilationFail

Carbon
void OnCompilationFail(string file, ModLoader.CompilationResult result)

Returns nothing: it only tells you something happened. Called from Carbon.Managers.ScriptLoader.Compile.

OnConstructorFail

Carbon
void OnConstructorFail(RustPlugin plugin, Exception exception)

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.InitializePlugin.

OnPluginLoaded

OxideCarbon
void OnPluginLoaded(RustPlugin plugin)

Returns nothing: it only tells you something happened. Called from Carbon.Managers.ScriptLoader.Compile.

OnPluginUnloaded

OxideCarbon
void OnPluginUnloaded(RustPlugin plugin)

Returns nothing: it only tells you something happened. Called from Carbon.Core.ModLoader.UninitializePlugin.

Oxide & Carbon Hooks 75Traps5

OnTrapArm

OxideCarbon
void OnTrapArm(BearTrap bearTrap, BasePlayer player)

Returns nothing: it only tells you something happened. Called from BearTrap.RPC_Arm.

OnTrapDisarm

OxideCarbon
void OnTrapDisarm(Landmine landmine, BasePlayer player)

Returns nothing: it only tells you something happened. Called from Landmine.RPC_Disarm.

OnTrapSnapped

OxideCarbon
void OnTrapSnapped(BaseTrapTrigger baseTrapTrigger)

Returns nothing: it only tells you something happened. Called from BaseTrapTrigger.OnObjectAdded.

OnTrapTrigger

OxideCarbon
void OnTrapTrigger(Landmine landmine)

Returns nothing: it only tells you something happened. Called from Landmine.ObjectEntered, BearTrap.ObjectEntered.

OnWildlifeTrap

OxideCarbon
void OnWildlifeTrap(WildlifeTrap wildlifeTrap, TrappableWildlife trapped)

Returns nothing: it only tells you something happened. Called from WildlifeTrap.TrapWildlife, SurvivalFishTrap.TrapThink.

Oxide & Carbon Hooks 76Network4

OnNetworkGroupEntered

OxideCarbon
void OnNetworkGroupEntered(BaseNetworkable baseNetworkable)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.OnNetworkGroupEnter.

OnNetworkGroupLeft

OxideCarbon
void OnNetworkGroupLeft(BaseNetworkable baseNetworkable)

Returns nothing: it only tells you something happened. Called from BaseNetworkable.OnNetworkGroupLeave.

OnNetworkSubscriptionsGather

OxideCarbon
void OnNetworkSubscriptionsGather(NetworkVisibilityGrid networkVisibilityGrid)

Returns nothing: it only tells you something happened. Called from NetworkVisibilityGrid.GetVisibleFrom.

OnNetworkSubscriptionsUpdate

OxideCarbon
void OnNetworkSubscriptionsUpdate()

Returns nothing: it only tells you something happened. Called from Network.Networkable.UpdateSubscriptions, Network.Networkable.UpdateHighPrioritySubscriptions.

Oxide & Carbon Hooks 77Queue4

OnConnectionDequeue

OxideCarbon
void OnConnectionDequeue()

Returns nothing: it only tells you something happened. Called from ConnectionQueue.RemoveConnection.

OnConnectionQueue

OxideCarbon
void OnConnectionQueue()

Returns nothing: it only tells you something happened. Called from ConnectionQueue.Join.

OnQueueCycle

OxideCarbon
void OnQueueCycle()

Returns nothing: it only tells you something happened. Called from ConnectionQueue.Cycle.

OnQueueUpdate

OxideCarbon
void OnQueueUpdate()

Returns nothing: it only tells you something happened. Called from ConnectionQueue.SendQueueUpdate.

Oxide & Carbon Hooks 78Shop3

OnShopAcceptClick

OxideCarbon
void OnShopAcceptClick(ShopFront shopFront, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ShopFront.AcceptClicked.

OnShopCancelClick

OxideCarbon
void OnShopCancelClick(ShopFront shopFront, BasePlayer player)

Returns nothing: it only tells you something happened. Called from ShopFront.CancelClicked.

OnShopCompleteTrade

OxideCarbon
void OnShopCompleteTrade(ShopFront shopFront)

Returns nothing: it only tells you something happened. Called from ShopFront.CompleteTrade.

Oxide & Carbon Hooks 79World3

OnTerrainCreate

OxideCarbon
void OnTerrainCreate(TerrainGenerator terrainGenerator)

Returns nothing: it only tells you something happened. Called from TerrainGenerator.CreateTerrain.

OnTerrainInitialized

OxideCarbon
void OnTerrainInitialized()

Returns nothing: it only tells you something happened. Called from TerrainMeta.PostSetupComponents.

OnWorldPrefabSpawned

OxideCarbon
void OnWorldPrefabSpawned(GameObject local0, string category)

Returns nothing: it only tells you something happened. Called from World.SpawnPrefab.

Oxide & Carbon Hooks 80CUI2

CanUseUI

OxideCarbon
void CanUseUI(BasePlayer player, string json)

Returns nothing: it only tells you something happened. Called from Oxide.Game.Rust.Cui.CuiHelper.AddUi.

OnDestroyUI

OxideCarbon
void OnDestroyUI(BasePlayer player, string name)

Returns nothing: it only tells you something happened. Called from Oxide.Game.Rust.Cui.CuiHelper.DestroyUi.

Oxide & Carbon Hooks 81CommunityUI2

OnCuiDraggableDrag

OxideCarbon
void OnCuiDraggableDrag()

Returns nothing: it only tells you something happened. Called from CommunityEntity.Hook_DragRPC.

OnCuiDraggableDrop

OxideCarbon
void OnCuiDraggableDrop()

Returns nothing: it only tells you something happened. Called from CommunityEntity.Hook_DropRPC.

Oxide & Carbon Hooks 82Industrial2

OnConveyorFiltersChange

OxideCarbon
void OnConveyorFiltersChange(IndustrialConveyor industrialConveyor, BasePlayer player, IndustrialConveyor.ItemFilterList local0)

Returns nothing: it only tells you something happened. Called from IndustrialConveyor.RPC_ChangeFilters.

OnItemCraft

OxideCarbon
void OnItemCraft(IndustrialCrafter industrialCrafter, ItemBlueprint local2)

Returns nothing: it only tells you something happened. Called from IndustrialCrafter.RunJob, ItemCrafter.CraftItem.

Oxide & Carbon Hooks 83Pet2

OnFrankensteinPetSleep

OxideCarbon
void OnFrankensteinPetSleep(FrankensteinPet local0, FrankensteinTable frankensteinTable, BasePlayer owner)

Returns nothing: it only tells you something happened. Called from FrankensteinTable.SleepFrankenstein.

OnFrankensteinPetWake

OxideCarbon
void OnFrankensteinPetWake(FrankensteinTable frankensteinTable, BasePlayer owner)

Returns nothing: it only tells you something happened. Called from FrankensteinTable.WakeFrankenstein.

Oxide & Carbon Hooks 84TechTree2

OnTechTreeNodeUnlock

OxideCarbon
void OnTechTreeNodeUnlock(Workbench workbench, TechTreeData.NodeInstance local5, BasePlayer local0)

Returns nothing: it only tells you something happened. Called from Workbench.RPC_TechTreeUnlock.

OnTechTreeNodeUnlocked

OxideCarbon
void OnTechTreeNodeUnlocked(Workbench workbench, TechTreeData.NodeInstance local5, BasePlayer local0, PooledList[ItemDefinition] local14)

Returns nothing: it only tells you something happened. Called from Workbench.RPC_TechTreeUnlock.

Oxide & Carbon Hooks 85

Using a hook

A hook is a method with the exact name and parameters in your plugin class; Oxide and Carbon call it when the game reaches that point.

Oxide & Carbon Hooks 86

Returning a value

Return null to let the game carry on, or a value (usually true or false) to stop it. Two plugins returning different values cause a conflict warning. Older plugin? Try the compatibility check.

More free Rust tools

Running a server? Our custom Rust maps and Rust plugins are checked on every update.