Structure (40)
All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.
Last updated
All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.
Last updated
Useful for ignoring resource requirements for placement.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Planner.CanAffordToPlace of Assembly-CSharp.dll.
Called when the resources for an upgrade are checked.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingBlock.CanAffordUpgrade of Assembly-CSharp.dll.
Called when the player tries to build something.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Planner.DoBuild of Assembly-CSharp.dll.
Called when a player tries to change a building grade.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingBlock.CanChangeToGrade of Assembly-CSharp.dll.
Called when a player tries to demolish a building block.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches StabilityEntity.CanDemolish of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerBuildingManager.Merge of Assembly-CSharp.dll.
Called when a building is split into two.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ServerBuildingManager.Split of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CodeLock.RPC_ChangeCode of Assembly-CSharp.dll.
This hook requires CanChangeCode, which loads alongside OnCodeChanged.
Called when the player has entered a code in a codelock.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CodeLock.UnlockWithCode of Assembly-CSharp.dll.
Called when a player tries to place a building block.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Planner.DoPlacement of Assembly-CSharp.dll.
Called when a player is assigned to a cupboard.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches CorePlugin.IOnCupboardAuthorize of Carbon.Common.dll.
Called when a cupboard attempts to authorize a player.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ItemModDeployable.OnDeployed of Assembly-CSharp.dll.
Called when a cupboard attempts to authorize a player.
Called when a cupboard attempts to authorize a player.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CorePlugin.IOnCupboardAuthorize of Carbon.Common.dll.
Called when an attempt is made to clear a cupboard authorized list.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingPrivlidge.ClearList of Assembly-CSharp.dll.
Called when a cupboard attempts to deauthorize a player.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingPrivlidge.RemoveSelfAuthorize of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingPrivlidge.GetProtectedMinutes of Assembly-CSharp.dll.
Called when the player closed a door.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Door.RPC_CloseDoor of Assembly-CSharp.dll.
Called when the player knocks on a door.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Door.RPC_KnockDoor of Assembly-CSharp.dll.
Called when the player knocks on a door.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches DoorKnocker.Knock of Assembly-CSharp.dll.
Called when the player opened a door.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Door.RPC_OpenDoor of Assembly-CSharp.dll.
Called when any structure is built (walls, ceilings, stairs, etc.).
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Planner.DoBuild of Assembly-CSharp.dll.
Called when the player has hit something with a hammer.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Hammer.DoAttackShared of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Locker.RPC_Equip of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BuildingBlock.Hurt of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches PoweredLightsDeployer.AddPoint of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches SignContent.CopyInfoToSign of Assembly-CSharp.dll.
Called after the player has locked a sign or photo frame.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Signage.LockSign of Assembly-CSharp.dll.
Called after the player has locked a sign or photo frame.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PhotoFrame.LockSign of Assembly-CSharp.dll.
Called after the player has changed the text on a sign or updated a photo frame.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Signage.UpdateSign of Assembly-CSharp.dll.
Called after the player has changed the text on a sign or updated a photo frame.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PhotoFrame.UpdateSign of Assembly-CSharp.dll.
Called after the player has changed the text on a sign or updated a photo frame.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CarvablePumpkin.UpdateSign of Assembly-CSharp.dll.
Called when the player selects Demolish or DemolishImmediate from the BuildingBlock or BaseCombatEntity menu.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches StabilityEntity.DoImmediateDemolish of Assembly-CSharp.dll.
Called when the player selects Demolish or DemolishImmediate from the BuildingBlock or BaseCombatEntity menu.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches StabilityEntity.DoDemolish of Assembly-CSharp.dll.
Called when the player repairs a BuildingBlock or BaseCombatEntity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseCombatEntity.DoRepair of Assembly-CSharp.dll.
Called when the player rotates a BuildingBlock or BaseCombatEntity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingBlock.DoRotation of Assembly-CSharp.dll.
Called when the player upgrades the grade of a BuildingBlock or BaseCombatEntity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BuildingBlock.DoUpgradeToGrade of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BuildingBlock.DoUpgradeToGrade of Assembly-CSharp.dll.
This hook requires OnStructureUpgrade, which loads alongside OnStructureUpgraded.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BuildingBlock.RemoveWallpaper of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BuildingBlock.SetWallpaper of Assembly-CSharp.dll.