Mount player to BaseModularVehicle/ModularCar?
so im trying to mount player to BaseModularVehicle aka ModularCar
i have tried player.MountObject(car, 0); and car.MountPlayer(player); both just kick me from server any suggestions?
Try this, once the seating modules have fully spawned.

foreach (var mountPoint in car.mountPoints)
{
    if (mountPoint.isDriver)
    {
        mountPoint.mountable.AttemptMount(player);
        break;
    }
}​
Thank you.

Merged post

Do you know what the hook is to not allow them to dismount off hand?
object CanDismountEntity(BasePlayer player, BaseMountable entity)
ya thats what i thought so i got the BaseModularVehicle.net.ID and im trying to stop dismount with no avail.

		object CanDismountEntity(BasePlayer player, BaseMountable entity)
		{
			if (!eventOpen) return null;
			if (RedEventCars.ContainsKey(entity.net.ID) || BlueEventCars.ContainsKey(entity.net.ID)) return false;
			return null;
		} ​
Just returning false seemed to work when I tested just now, so I'm guessing the issue resides with the rest of those checks.

Probably you should be getting the car from the mountable, since the mountable is just the chair, not the seating module or the car.