Skip to content

OnVehicleModuleSelect

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnVehicleModuleSelect( Item vehicleItem, ModularCarGarage instance, BasePlayer player )
{
    Puts( "OnVehicleModuleSelect works!" );
}

Location

  • ModularCarGarage::RPC_SelectedLootItem(BaseEntity/RPCMessage msg)
csharp
//---
		return;
	}
	Item vehicleItem = this.carOccupant.GetVehicleItem(itemUID);
	if (vehicleItem != null)
	{
		if (Interface.CallHook("OnVehicleModuleSelect", vehicleItem, this, player) != null)
		{
			return;
		}
		bool flag = player.inventory.loot.RemoveContainerAt(3);
		BaseVehicleModule baseVehicleModule;
//---

Released under the MIT License.