Skip to main content

CanSwapToSeat

Usage​

  • Called when a player tries to switch seats, to determine whether each seat is eligible to be swapped to
  • Return true or false to override default behavior

Examples​

""
bool? CanSwapToSeat(BasePlayer player, BaseMountable mountable)
{
Puts("CanSwapToSeat works!");
return null;
}
""
bool? CanSwapToSeat(BasePlayer player, ModularCarSeat catSeat)
{
Puts("CanSwapToSeat works!");
return null;
}