function module.ShowPrompt(y,u)if not AdornedSeat then ContextActionService:BindAction(SEATING_ACTION_NAME,seatingAction,false,Keymap.EnterVehicleGamepad,Keymap.EnterVehicleKeyboard)if isFlipped(y)then FlipImageButton.Visible=true EnterImageButton.Visible=false else FlipImageButton.Visible=false EnterImageButton.Visible=true end AdornedSeat=y ButtonGui.Adornee=y ButtonGui.Enabled=true ButtonGui.Parent=u if y.Name=="\086\101\104\105\099\108\101\083\101\097\116"then EnterImageButton.Image=DriverButtonId EnterImageButton.Pressed.Image=DriverButtonPressedId else EnterImageButton.Image=PassengerButtonId EnterImageButton.Pressed.Image=PassengerButtonPressedId end end end function module.HidePrompt()ContextActionService:UnbindAction(SEATING_ACTION_NAME)AdornedSeat=nil ButtonGui.Adornee=nil ButtonGui.Enabled=false ButtonGui.Parent=script end return module
---Display enter or flip prompt---
function module.ShowPrompt(seat, parent)
	if not AdornedSeat then
		ContextActionService:BindAction(
			SEATING_ACTION_NAME,
			seatingAction,
			false,
			Keymap.EnterVehicleGamepad,
			Keymap.EnterVehicleKeyboard
		)
		if isFlipped(seat) then
			FlipImageButton.Visible = true
			EnterImageButton.Visible = false
		else
			FlipImageButton.Visible = false
			EnterImageButton.Visible = true
		end
		AdornedSeat = seat
		ButtonGui.Adornee = seat
		ButtonGui.Enabled = true
		ButtonGui.Parent = parent
		if seat.Name == "VehicleSeat" then
			EnterImageButton.Image = DriverButtonId
			EnterImageButton.Pressed.Image = DriverButtonPressedId
		else
			EnterImageButton.Image = PassengerButtonId
			EnterImageButton.Pressed.Image = PassengerButtonPressedId
		end
	end
end

function module.HidePrompt()
	ContextActionService:UnbindAction(SEATING_ACTION_NAME)
	AdornedSeat = nil
	ButtonGui.Adornee = nil
	ButtonGui.Enabled = false
	ButtonGui.Parent = script
end

return module
