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.
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.
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.
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.
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.
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.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches TrainCoupling.TryCouple of Assembly-CSharp.dll.
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.
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.
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.
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.
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.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BradleyAPC.DoSimpleAI of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches ModularCarGarage.RPC_RequestNewCode of Assembly-CSharp.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 VehiclePrivilege.AddSelfAuthorize of Assembly-CSharp.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 VehiclePrivilege.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 VehiclePrivilege.RemoveSelfAuthorize of Assembly-CSharp.dll.
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.
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.
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.
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.
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.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleEngineController`1.FinishStartingEngine of Assembly-CSharp.dll.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches ModularCarGarage.RPC_RequestRemoveLock of Assembly-CSharp.dll.
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.
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.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.EndFiring of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.FireNextRocket of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches MLRS.SetUserTargetHitPos of Assembly-CSharp.dll.
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.
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.
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.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches TrainCar.RPC_WantsUncouple of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches VehicleModuleSeating.PlayerServerInput of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarCodeLock.CanHaveALock of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ModularCarGarage.RPC_RequestAddLock of Assembly-CSharp.dll.
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.
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.
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.
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.
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.
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.
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