Skip to content

OnVehicleLockableCheck

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

csharp
private void OnVehicleLockableCheck( ModularCarCodeLock instance )
{
    Puts( "OnVehicleLockableCheck works!" );
}

Location

  • ModularCarCodeLock::CanHaveALock()
csharp
public bool CanHaveALock()
{
	object returnvar = Interface.CallHook("OnVehicleLockableCheck", this);
	if (returnvar != null)
	{
		return returnvar is bool && (bool)returnvar;
	}
	return !this.owner.IsDead() && this.owner.HasDriverMountPoints();
//---

Released under the MIT License.