Vehicle (56)
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.
CanBradleyApcTarget
Called when an APC targets an entity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BradleyAPC.VisibilityTest of Assembly-CSharp.dll.
CanDestroyLock
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches ModularCar.PlayerCanDestroyLock of Assembly-CSharp.dll.
CanHelicopterDropCrate
Called when a CH47 helicopter attempts to drop a crate.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CH47HelicopterAIController.CanDropCrate of Assembly-CSharp.dll.
CanHelicopterStrafe
Called when a patrol helicopter attempts to strafe.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PatrolHelicopterAI.CanStrafe of Assembly-CSharp.dll.
CanHelicopterStrafeTarget
Called when a patrol helicopter attempts to target a player to attack while strafing.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PatrolHelicopterAI.ValidRocketTarget of Assembly-CSharp.dll.
CanHelicopterTarget
Called when a patrol helicopter attempts to target a player to attack.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PatrolHelicopterAI.PlayerVisible of Assembly-CSharp.dll.
CanHelicopterUseNapalm
Called when a patrol helicopter attempts to use napalm.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PatrolHelicopterAI.CanUseNapalm of Assembly-CSharp.dll.
CanLock
Useful for canceling the lock action.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarCodeLock.HasLockPermission of Assembly-CSharp.dll.
CanTrainCarCouple
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches TrainCoupling.TryCouple of Assembly-CSharp.dll.
CanUseHelicopter
Useful for denying to mount a CH47 helicopter.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CH47HelicopterAIController.AttemptMount of Assembly-CSharp.dll.
OnBoatPathGenerate
Called when generating ocean patrol path for CargoShip.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseBoat.GenerateOceanPatrolPath of Assembly-CSharp.dll.
OnBradleyApcHunt
Called when an APC starts hunting.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BradleyAPC.UpdateMovement_Hunt of Assembly-CSharp.dll.
OnBradleyApcInitialize
Called when an APC initializes.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BradleyAPC.Initialize of Assembly-CSharp.dll.
OnBradleyApcPatrol
Called when an APC is starts patrolling.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BradleyAPC.UpdateMovement_Patrol of Assembly-CSharp.dll.
OnBradleyApcThink
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BradleyAPC.DoSimpleAI of Assembly-CSharp.dll.
OnCodeChange
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches ModularCarGarage.RPC_RequestNewCode of Assembly-CSharp.dll.
OnCupboardAuthorize
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 VehiclePrivilege.AddSelfAuthorize of Assembly-CSharp.dll.
OnCupboardClearList
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 VehiclePrivilege.ClearList of Assembly-CSharp.dll.
OnCupboardDeauthorize
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 VehiclePrivilege.RemoveSelfAuthorize of Assembly-CSharp.dll.
OnEngineLoadoutRefresh
Called before engine loadout data is refreshed.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches EngineStorage.RefreshLoadoutData of Assembly-CSharp.dll.
OnEngineStart (MotorRowboat)
Called when a player tries to start a vehicle engine.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MotorRowboat.EngineToggle of Assembly-CSharp.dll.
OnEngineStart (VehicleEngineController`1)
Called when a player tries to start a vehicle engine.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleEngineController`1.TryStartEngine of Assembly-CSharp.dll.
OnEngineStarted (MotorRowboat)
Called right after a vehicle engine has started.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MotorRowboat.EngineToggle of Assembly-CSharp.dll.
This hook requires OnEngineStart [MotorRowboat], which loads alongside OnEngineStarted.
OnEngineStarted (VehicleEngineController`1)
Called right after a vehicle engine has started.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleEngineController`1.TryStartEngine of Assembly-CSharp.dll.
This hook requires OnEngineStart, which loads alongside OnEngineStarted.
OnEngineStartFinished
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleEngineController`1.FinishStartingEngine of Assembly-CSharp.dll.
OnEngineStatsRefresh
Called right before the stats of a modular car engine are refreshed.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleModuleEngine.RefreshPerformanceStats of Assembly-CSharp.dll.
OnEngineStatsRefreshed
Called right after the stats of a modular car engine are refreshed.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleModuleEngine.RefreshPerformanceStats of Assembly-CSharp.dll.
This hook requires OnEngineStatsRefresh, which loads alongside OnEngineStatsRefreshed.
OnEngineStop
Called when a vehicle engine is about to stop.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleEngineController`1.StopEngine of Assembly-CSharp.dll.
OnEngineStopped
Called right after a vehicle engine has stopped.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleEngineController`1.StopEngine of Assembly-CSharp.dll.
This hook requires OnEngineStop, which loads alongside OnEngineStopped.
OnHelicopterAttack
Called when a CH47 helicopter is being attacked.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CH47HelicopterAIController.OnAttacked of Assembly-CSharp.dll.
OnHelicopterDropCrate
Called when a CH47 helicopter is dropping a crate.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CH47HelicopterAIController.DropCrate of Assembly-CSharp.dll.
OnHelicopterDropDoorOpen
Called when a CH47 helicopter is opening its drop door.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CH47HelicopterAIController.SetDropDoorOpen of Assembly-CSharp.dll.
OnHelicopterOutOfCrates
Called when a CH47 helicopter runs out of crates.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches CH47HelicopterAIController.OutOfCrates of Assembly-CSharp.dll.
OnHelicopterRetire
Called before the patrol helicopter starts leaving the map.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PatrolHelicopterAI.Retire of Assembly-CSharp.dll.
OnHelicopterStrafeEnter
Called when helicopter is entering strafe.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches PatrolHelicopterAI.StartStrafe of Assembly-CSharp.dll.
OnHelicopterTarget
Called when a helicopter turret attempts to target an entity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches HelicopterTurret.SetTarget of Assembly-CSharp.dll.
OnLockRemove
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches ModularCarGarage.RPC_RequestRemoveLock of Assembly-CSharp.dll.
OnMlrsFire
Called just before the MLRS is fired.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.Fire of Assembly-CSharp.dll.
OnMlrsFired
Called just after the MLRS has been fired.
No return behaviour.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.Fire of Assembly-CSharp.dll.
This hook requires OnMlrsFire, which loads alongside OnMlrsFired.
OnMlrsFiringEnded
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.EndFiring of Assembly-CSharp.dll.
OnMlrsRocketFired
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.FireNextRocket of Assembly-CSharp.dll.
OnMlrsTarget
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.SetUserTargetHitPos of Assembly-CSharp.dll.
OnMlrsTargetSet
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.SetUserTargetHitPos of Assembly-CSharp.dll.
This hook requires OnMlrsTarget, which loads alongside OnMlrsTargetSet.
OnRidableAnimalClaim
Called when a player tries to claim a horse.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseRidableAnimal.RPC_Claim of Assembly-CSharp.dll.
OnRidableAnimalClaimed
Called after a player has claimed a horse.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseRidableAnimal.RPC_Claim of Assembly-CSharp.dll.
This hook requires OnRidableAnimalClaim, which loads alongside OnRidableAnimalClaimed.
OnTrainCarUncouple
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches TrainCar.RPC_WantsUncouple of Assembly-CSharp.dll.
OnVehicleHornPressed
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleModuleSeating.PlayerServerInput of Assembly-CSharp.dll.
OnVehicleLockableCheck
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarCodeLock.CanHaveALock of Assembly-CSharp.dll.
OnVehicleLockRequest
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarGarage.RPC_RequestAddLock of Assembly-CSharp.dll.
OnVehicleModuleDeselected
Called right after a player deselects a vehicle module item in a car's inventory.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarGarage.RPC_DeselectedLootItem of Assembly-CSharp.dll.
OnVehicleModuleMove
Called when a player tries to move a vehicle module item that is currently on a vehicle.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseModularVehicle.CanMoveFrom of Assembly-CSharp.dll.
OnVehicleModulesAssign
Called right after a modular car has spawned, but before module items are added to its inventory from a preset.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCar.SpawnPreassignedModules of Assembly-CSharp.dll.
OnVehicleModulesAssigned
Called right after a car has spawned and its module inventory has been filled with module items from a preset.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCar.SpawnPreassignedModules of Assembly-CSharp.dll.
This hook requires OnVehicleModulesAssign, which loads alongside OnVehicleModulesAssigned.
OnVehicleModuleSelect
Called right after a player has selected a vehicle module item in a car inventory, but before they are shown the corresponding storage container.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarGarage.RPC_SelectedLootItem of Assembly-CSharp.dll.
OnVehicleModuleSelected
Called right after a player has selected a vehicle module item in a car's inventory, and after they have been shown the corresponding storage container if applicable.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarGarage.RPC_SelectedLootItem of Assembly-CSharp.dll.
This hook requires OnVehicleModuleSelect, which loads alongside OnVehicleModuleSelected.
OnVehiclePush
Called when a player tries to push a vehicle.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseVehicle.RPC_WantsPush of Assembly-CSharp.dll.
Last updated