Client Hooks
The official, full and up-to-date list of Carbon for client hooks.
Entity
Gets called when a skinned entity updates its skin.
Patches BaseEntity.OnSkinChanged.
Gets called when the skin finished loading.
Patches BaseEntity.OnSkinRefreshed.
Gets called when the client reacts to a deployed flashbang.
Patches Flashbang.FlashFrom.
Inventory
Gets called when the inspected item gets deselected.
Patches SelectedItem.ClearSelection.
Gets called when the item inspector pops up.
Patches SelectedItem.TrySelect.
Called when an inspected item is no longer inspected.
Patches ItemIcon.Deselect.
Gets called when an inspected item action is executed.
Patches ItemOptionButton.Pressed.
Called when an item is selected.
Patches ItemIcon.Select.
Called when an item is selected silently.
Patches ItemIcon.SelectSilent.
Gets called when a container the client's watching gets updated/marked dirty by the server.
Patches ItemContainer.OnChanged.
Gets called when the inventory toggles.
Patches UIInventory.ToggleInventory.
Menu
Gets called when the text input of the console gets submitted.
Patches ConsoleUI.SubmitCommand.
Gets called when a layer has been toggled in the F1 -> Tools dev panel.
Patches ToggleLayer.OnToggleChanged.
Gets called when the main menu becomes hidden.
Server hook: OnClientMenuHide(CarbonClient client)
Patches MainMenuSystem.Hide.
Gets called when the main menu becomes visible.
Server hook: OnClientMenuShow(CarbonClient client)
Patches MainMenuSystem.Show.
Network
Gets called when the server sends the approval packet allowing the client to connect.
Patches Client.OnApproved.
Gets called when a client-side entity gets destroyed due to it being out of the group/server destroyed.
Patches BaseNetworkable.EntityDestroy.
Gets called when a client side entity has been spawned.
Patches BaseNetworkable.ClientSpawn.
Gets called when the server calls the CreateOrUpdateEntity RPC.
Patches Client.CreateOrUpdateEntity.
Gets called when the server updates the flags of the player.
Patches Client.OnEntityFlags.
Gets called when the server updates the position of the player.
Patches Client.OnEntityPosition.
Gets called when the client enters a network group.
Patches BaseNetworkable.OnNetworkGroupEnter.
Gets called when a player leaves a network group.
Patches BaseNetworkable.OnNetworkGroupLeave.
Gets called when there's an entity network update from the server.
Patches BaseNetworkable.OnNetworkUpdate.
Gets called when the server delivers the OnRpcMessage RPC.
Patches BaseEntity.OnRpcMessage.
Gets called when there's an incoming network message from the server.
Patches Client.OnNetworkMessage.
Player
Gets called when the client checks if it's in a safe-zone trigger or not.
Return `boolean` to override original method logic.
Patches BasePlayer.InSafeZone.
Gets called when the client receives an attack from the server.
Patches BasePlayer.OnAttacked.
Gets called when the player held item gets changed.
Patches BasePlayer.HeldEntityStart.
Gets called when the player held item becomes null.
Patches BasePlayer.HeldEntityEnd.
Gets called when the player lands on a surface.
Patches BasePlayer.OnLand.
Gets called when the client gets disconnected from a server.
Patches Network.Client.OnDisconnected.
ViewModel
Gets called when the held viewmodel is holstered.
Patches ViewModel.Clear.
Gets called when the viewmodel deploys a new held entity (right before animation starts).
Patches ViewModel.Deploy.
Gets called when the held viewmodel is holstered.
Patches ViewModel.Holster.
Gets when an animation starts playing on the current viewmodel.
Patches ViewModel.Play.
Miscellaneous
Overrides the OS name method of the client.
Patches Client.GetOSName.
Last updated